Don't (un)pause game after it's complete
Using the app menu could restart the timer after the game's over... not good.
This commit is contained in:
parent
d429e01e33
commit
c22978ab3e
1 changed files with 1 additions and 1 deletions
|
@ -1228,7 +1228,7 @@ public class Application : Gtk.Application
|
|||
|
||||
public void set_paused_state (bool paused)
|
||||
{
|
||||
if (paused == is_paused)
|
||||
if (paused == is_paused || game.result != ChessResult.IN_PROGRESS)
|
||||
return;
|
||||
|
||||
is_paused = paused;
|
||||
|
|
Loading…
Reference in a new issue