After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 741657 - Chess timer gets reset to the max allowed on game restarts
Chess timer gets reset to the max allowed on game restarts
Status: RESOLVED FIXED
Product: gnome-chess
Classification: Applications
Component: General
3.15.x
Other All
: High normal
: ---
Assigned To: Sahil Sareen
gnome-chess-maint
Depends on:
Blocks:
 
 
Reported: 2014-12-17 14:59 UTC by Sahil Sareen
Modified: 2014-12-26 16:37 UTC
See Also:
GNOME target: ---
GNOME version: 3.13/3.14


Attachments
Save the timer correctly on game close. (1.41 KB, patch)
2014-12-25 11:24 UTC, Sahil Sareen
committed Details | Review

Description Sahil Sareen 2014-12-17 14:59:29 UTC
Steps to reproduce:
===============
1. Start a new game.
2. Let the timer go down a bit.
3. Close the game.
4. Start.
5. Repeat 3-4.
6. The clock timer gets reset to the maximum allowed time :(

---

I confirmed this issue with Michael, and we think its ok for the clock to get set once every move instead of every second as we don't want to do write the game file to the disk every second.
Comment 1 Sahil Sareen 2014-12-25 11:24:39 UTC
Created attachment 293337 [details] [review]
Save the timer correctly on game close.

I found that the remaining time was not getting saved correctly on game close, 
the problem was that the difference was getting calculated from the max time allowed.
Comment 2 Michael Catanzaro 2014-12-26 16:36:59 UTC
Looks good, thank you!