Move close action to the window class

This commit is contained in:
kramo
2023-05-23 14:04:57 +02:00
parent 0e24c8c50b
commit 4ca8e140aa
2 changed files with 4 additions and 4 deletions

View File

@@ -369,3 +369,6 @@ class CartridgesWindow(Adw.ApplicationWindow):
self.primary_menu_button.popup()
elif self.stack.get_visible_child() == self.hidden_library_view:
self.hidden_primary_menu_button.popup()
def on_close_action(self, *_args):
self.close()