[gnome-games] display-view: Reload action state on supports_snapshots changes



commit 403877a0b430de69ddf6cb4afd56b959243ff0af
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Mar 21 03:17:41 2021 +0500

    display-view: Reload action state on supports_snapshots changes

 src/ui/display-view.vala | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/ui/display-view.vala b/src/ui/display-view.vala
index db8f1e57..b334acd0 100644
--- a/src/ui/display-view.vala
+++ b/src/ui/display-view.vala
@@ -394,6 +394,8 @@ private class Games.DisplayView : Gtk.Box, UiView {
 
                update_actions ();
 
+               runner.notify["supports-snapshots"].connect (update_actions);
+
                is_fullscreen = settings.get_boolean ("fullscreen") && can_fullscreen;
 
                if (!runner.can_resume) {
@@ -724,8 +726,11 @@ private class Games.DisplayView : Gtk.Box, UiView {
                }
 
                runner.stop ();
+
                runner = try_get_runner (game);
 
+               runner.notify["supports-snapshots"].connect (update_actions);
+
                try {
                        runner.start ();
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]