Merge pull request #883 from rcalixte/fix_groupwindow

window.py: Fix window group toggle keybind
This commit is contained in:
Matt Rose 2024-02-11 15:51:39 -05:00 committed by GitHub
commit d9aaa549c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -802,7 +802,7 @@ class Window(Container, Gtk.Window):
def group_win_toggle(self, widget): def group_win_toggle(self, widget):
"""Toggle grouping to all windows in the current window""" """Toggle grouping to all windows in the current window"""
if widget.group == 'Window': if widget.group:
self.ungroup_win(widget) self.ungroup_win(widget)
else: else:
self.group_win(widget) self.group_win(widget)