[gnome-games] application-window: Start a new game if runner doesn't support saved states



commit 7723aa0914ffb002c5a4d618dbd59dd1fa55549e
Author: Yetizone <andreii lisita gmail com>
Date:   Sun Feb 3 17:07:42 2019 +0200

    application-window: Start a new game if runner doesn't support saved states

 src/ui/application-window.vala | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index e0ac74ec..389e139d 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -359,6 +359,11 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
 
                is_fullscreen = settings.get_boolean ("fullscreen") && runner.can_fullscreen;
 
+               if (!runner.can_resume) {
+                       try_run_with_cancellable (runner, false, cancellable);
+                       return;
+               }
+
                var response = Gtk.ResponseType.NONE;
                if (runner.can_resume)
                        response = prompt_resume_with_cancellable (cancellable);


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