fix: available command also refreshes ws list

This commit is contained in:
əlemi 2024-09-26 16:21:26 +02:00
parent b561802109
commit 7e6f2fd905
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -55,12 +55,16 @@ local connected_actions = {
end,
available = function()
CODEMP.available = {}
for _, ws in ipairs(CODEMP.client:list_workspaces(true, false):await()) do
print(" ++ " .. ws)
table.insert(CODEMP.available, ws)
end
for _, ws in ipairs(CODEMP.client:list_workspaces(false, true):await()) do
print(" -- " .. ws)
table.insert(CODEMP.available, ws)
end
require('codemp.window').update()
end,
invite = function(user)