[gnome-chess] Start the clock immediately when loading a game



commit 199846d77bdfb029f04be78483a031ac64af53fe
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Sat Jun 8 17:29:37 2013 -0500

    Start the clock immediately when loading a game
    
    We only don't want to start the clock at the start of the game if it's a
    brand new game, where White hasn't moved yet.

 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 f42f836..7285408 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -492,6 +492,9 @@ public class Application : Gtk.Application
         save_menu.sensitive = in_history;
         game.start ();
 
+        if (moves.length > 0)
+            game.clock.start ();
+
         if (game.result != ChessResult.IN_PROGRESS)
             game_end_cb (game);
 


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