[gnome-chess/gnome-3-14] Fix the pause functionality on timer
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/gnome-3-14] Fix the pause functionality on timer
- Date: Wed, 17 Dec 2014 00:52:56 +0000 (UTC)
commit 54c1e1c611bfe0903215c01a0f076c4518e2b222
Author: Sahil Sareen <sahil sareen hotmail com>
Date: Wed Dec 10 19:38:39 2014 +0530
Fix the pause functionality on timer
Fixes issues:
Bug 740988 - Timer is dead in a scenario
Bug 741119 - Pause seems to be broken
lib/chess-clock.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/chess-clock.vala b/lib/chess-clock.vala
index f8dd1ee..093ccf3 100644
--- a/lib/chess-clock.vala
+++ b/lib/chess-clock.vala
@@ -105,6 +105,7 @@ public class ChessClock : Object
timer.stop ();
stop_watching_timer ();
+ is_active = false;
}
public void unpause ()
@@ -114,6 +115,7 @@ public class ChessClock : Object
timer continue ();
watch_timer ();
+ is_active = true;
}
private void watch_timer ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]