Add developer property

This commit is contained in:
kramo
2023-03-15 13:12:48 +01:00
parent b702c9c28e
commit e2a2ea6da2
8 changed files with 132 additions and 21 deletions

View File

@@ -54,6 +54,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
overview_launch = Gtk.Template.Child()
overview_blurred_cover = Gtk.Template.Child()
overview_menu_button = Gtk.Template.Child()
overview_developer = Gtk.Template.Child()
overview_added = Gtk.Template.Child()
overview_last_played = Gtk.Template.Child()
@@ -231,6 +232,12 @@ class CartridgesWindow(Adw.ApplicationWindow):
def show_overview(self, _widget, game_id):
current_game = self.games[game_id]
if current_game.developer:
self.overview_developer.set_label(current_game.developer)
self.overview_developer.set_visible(True)
else:
self.overview_developer.set_visible(False)
if not current_game.hidden:
self.overview_menu_button.set_menu_model(self.game_options)
else: