UX improvements

This commit is contained in:
kramo
2023-03-29 00:55:18 +02:00
parent 643ca368a6
commit c1abed8af6
4 changed files with 53 additions and 16 deletions

View File

@@ -127,8 +127,11 @@ class CartridgesApplication(Adw.Application):
)
about.present()
def on_preferences_action(self, _widget, _callback=None):
PreferencesWindow(self.win).present()
def on_preferences_action(self, _widget, _callback=None, page_name=None):
win = PreferencesWindow(self.win)
if page_name:
win.set_visible_page_name(page_name)
win.present()
def on_launch_game_action(self, _widget, _callback=None):
# Launch the game and update the last played value