[gnome-games/wip/exalm/runner-refactor: 6/58] display-view: Remove a redundant can_resume check



commit 5d516b617fea79dcfcfddf2a51651f054c73b82b
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Mar 6 00:21:14 2020 +0500

    display-view: Remove a redundant can_resume check
    
    That case was already handled, it's guaranteed to be true by this point.

 src/ui/display-view.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/ui/display-view.vala b/src/ui/display-view.vala
index 69ef225c..c528d631 100644
--- a/src/ui/display-view.vala
+++ b/src/ui/display-view.vala
@@ -340,9 +340,7 @@ private class Games.DisplayView : Object, UiView {
                        return;
                }
 
-               var response = Gtk.ResponseType.NONE;
-               if (runner.can_resume)
-                       response = prompt_resume_with_cancellable (cancellable);
+               var response = prompt_resume_with_cancellable (cancellable);
 
                if (response != Gtk.ResponseType.NONE) {
                        var resume = (response == Gtk.ResponseType.ACCEPT);


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