Skip to content

Commit

Permalink
window.py: Fix window group toggle keybind
Browse files Browse the repository at this point in the history
The current conditional always evaluates to False, resulting in the
ungroup_win() function never being called
  • Loading branch information
rcalixte committed Feb 9, 2024
1 parent 5c6fda2 commit 1ad6c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terminatorlib/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def tab_change(self, widget, num=None):
# change
child.set_current_page(child.get_current_page())

def set_groups(self, new_group, term_list):
def set_groups(self, new_group, term_list):
"""Set terminals in term_list to new_group"""
for terminal in term_list:
terminal.set_group(None, new_group)
Expand Down Expand Up @@ -802,7 +802,7 @@ def group_win(self, widget):

def group_win_toggle(self, widget):
"""Toggle grouping to all windows in the current window"""
if widget.group == 'Window':
if isinstance(widget.group, str):
self.ungroup_win(widget)
else:
self.group_win(widget)
Expand Down

0 comments on commit 1ad6c89

Please sign in to comment.