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



commit 5e11665d3d87991a708f93917649813d288bea50
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 41898cd..52f15f6 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1119,6 +1119,9 @@ public class Application : Gtk.Application
         disable_window_action (UNDO_MOVE_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]