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, end,
available = function() available = function()
CODEMP.available = {}
for _, ws in ipairs(CODEMP.client:list_workspaces(true, false):await()) do for _, ws in ipairs(CODEMP.client:list_workspaces(true, false):await()) do
print(" ++ " .. ws) print(" ++ " .. ws)
table.insert(CODEMP.available, ws)
end end
for _, ws in ipairs(CODEMP.client:list_workspaces(false, true):await()) do for _, ws in ipairs(CODEMP.client:list_workspaces(false, true):await()) do
print(" -- " .. ws) print(" -- " .. ws)
table.insert(CODEMP.available, ws)
end end
require('codemp.window').update()
end, end,
invite = function(user) invite = function(user)