Skip to content

Commit

Permalink
fix(widget): fix typo causing failure in hook-unsubscription cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aravinda0 committed Aug 14, 2024
1 parent fd556ce commit 12f3f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/+b.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a typo that was causing the BonsaiBar widget to not clean up properly on reload/restart
2 changes: 1 addition & 1 deletion src/qtile_bonsai/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _setup_hooks(self):

def _remove_hooks(self):
hook.unsubscribe.client_killed(self._handle_client_killed)
hook.unsubscribe.client_remove(self._handle_client_focus)
hook.unsubscribe.client_focus(self._handle_client_focus)

def _handle_client_focus(self, client):
self.draw()
Expand Down

0 comments on commit 12f3f95

Please sign in to comment.