[gnome-chess/gnome-3-12] Always enable New Game on game over



commit c85f47e7a1bda998e2ecc52721bcf8957c3362fc
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Jun 24 18:50:57 2014 -0500

    Always enable New Game on game over
    
    If something goes wrong with the engine before the first move, then the
    user needs to be able to press New Game.

 src/gnome-chess.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index b42dc2a..4b05911 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1144,6 +1144,9 @@ public class Application : Gtk.Application
         disable_window_action (CLAIM_DRAW_ACTION_NAME);
         disable_window_action (PAUSE_RESUME_ACTION_NAME);
 
+        /* In case of engine desync before the first move, or after undo */
+        enable_window_action (NEW_GAME_ACTION_NAME);
+
         game_needs_saving = false;
 
         if (opponent_engine != null)


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