Skip to content

Commit

Permalink
use signal to update taglist
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintRyoh committed Oct 2, 2023
1 parent 5f32cd8 commit 4628e24
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rabbithole/components/widgets/taglist/init.lua
Expand Up @@ -73,7 +73,7 @@ function TaglistController.new(
widget_template = local_taglist_template(self)
}

awesome.connect_signal("taglist::update", function()
awesome.connect_signal("workspaceManager::tag_switch", function()
s.local_taglist._do_taglist_update()
end)

Expand Down
1 change: 0 additions & 1 deletion rabbithole/services/workspaceManagerService/init.lua
Expand Up @@ -308,7 +308,6 @@ function WorkspaceManagerService:switchTo(workspace)
self.workspaceManagerModel:switchTo(workspace)
self:assignWorkspaceTagsToScreens()
self:updateSubscribers()
awesome.emit_signal("taglist::update")
end

function WorkspaceManagerService:moveTagToWorkspace(tag, workspace)
Expand Down
Expand Up @@ -79,6 +79,7 @@ function workspaceManager:switchTo(workspace)
self:setStatusForAllWorkspaces(false)
workspace:setStatus(true)
workspace:restoreGlobalBackup()
awesome.emit_signal("workspaceManager::tag_switch")
end

-- create a __serialize method to allow for serialization
Expand Down

0 comments on commit 4628e24

Please sign in to comment.