From 46f956613ff633f8da7633b48050a438f8c06531 Mon Sep 17 00:00:00 2001 From: Rick Calixte <10281587+rcalixte@users.noreply.github.com> Date: Tue, 6 Feb 2024 14:11:25 -0500 Subject: [PATCH] window.py: Fix window group toggle keybind The current conditional always evaluates to False, resulting in the ungroup_win() function never being called --- terminatorlib/window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/window.py b/terminatorlib/window.py index 69e999f9..d0a15b4e 100644 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -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) @@ -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 widget.group: self.ungroup_win(widget) else: self.group_win(widget)