[gnome-games/wip/exalm/runner-refactor: 5/58] display-view: Rename try_run_with_cancellable() to start_or_resume()



commit 8e560ce65f36a169fe28f10658f5ac99f0119adb
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Mar 6 00:19:00 2020 +0500

    display-view: Rename try_run_with_cancellable() to start_or_resume()
    
    Also remove unused cancellable parameter.

 src/ui/display-view.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/display-view.vala b/src/ui/display-view.vala
index b6714b59..69ef225c 100644
--- a/src/ui/display-view.vala
+++ b/src/ui/display-view.vala
@@ -336,7 +336,7 @@ private class Games.DisplayView : Object, UiView {
                is_fullscreen = settings.get_boolean ("fullscreen") && can_fullscreen;
 
                if (!runner.can_resume) {
-                       try_run_with_cancellable (runner, false, cancellable);
+                       start_or_resume (runner, false);
                        return;
                }
 
@@ -347,7 +347,7 @@ private class Games.DisplayView : Object, UiView {
                if (response != Gtk.ResponseType.NONE) {
                        var resume = (response == Gtk.ResponseType.ACCEPT);
 
-                       if (!try_run_with_cancellable (runner, resume, cancellable))
+                       if (!start_or_resume (runner, resume))
                                prompt_resume_fail_with_cancellable (runner, cancellable);
                }
        }
@@ -396,7 +396,7 @@ private class Games.DisplayView : Object, UiView {
                return (Gtk.ResponseType) response;
        }
 
-       private bool try_run_with_cancellable (Runner runner, bool resume, Cancellable cancellable) {
+       private bool start_or_resume (Runner runner, bool resume) {
                try {
                        if (resume)
                                runner.load_previewed_savestate ();


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