[gnome-tetravex] Allow to see last position.
- From: Arnaud B. <arnaudb src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-tetravex] Allow to see last position.
 
- Date: Mon, 16 Sep 2019 15:23:44 +0000 (UTC)
 
commit a2c861ceab6b59eedc67104413adcd31cf94b14e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Sep 16 17:23:23 2019 +0200
    Allow to see last position.
    
    Until now, it was impossible
    to display the last position
    of a game, as closing scores
    dialog would restart a game.
 src/gnome-tetravex.vala | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 4c0891b..c5e7842 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -305,9 +305,10 @@ public class Tetravex : Gtk.Application
         history.add (entry);
         history.save ();
 
-        if (show_scores (entry, true) == Gtk.ResponseType.CLOSE)
+        int score_dialog_action = show_scores (entry, true);
+        if (score_dialog_action == Gtk.ResponseType.CLOSE)
             window.destroy ();
-        else
+        else if (score_dialog_action == Gtk.ResponseType.OK)
             new_game ();
     }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]