GTK cleanups 2

This commit is contained in:
kramo
2023-05-22 20:47:14 +02:00
parent f041598629
commit acb2924602
3 changed files with 37 additions and 26 deletions

View File

@@ -41,6 +41,7 @@ class Game(Gtk.Box):
cover_button = Gtk.Template.Child()
menu_button = Gtk.Template.Child()
play_revealer = Gtk.Template.Child()
menu_revealer = Gtk.Template.Child()
game_options = Gtk.Template.Child()
hidden_game_options = Gtk.Template.Child()
@@ -252,6 +253,7 @@ class Game(Gtk.Box):
def toggle_play(self, _widget, _prop1, _prop2, state=True):
if not self.menu_button.get_active():
self.play_revealer.set_reveal_child(not state)
self.menu_revealer.set_reveal_child(not state)
def main_button_clicked(self, _widget, button):
if shared.schema.get_boolean("cover-launches-game") ^ button: