[gnome-chess] Set reasonable defaults for global booleans
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Set reasonable defaults for global booleans
- Date: Wed, 9 Apr 2014 03:53:56 +0000 (UTC)
commit ffcbf957d25e9419f9897bef77f26350646a3c44
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Apr 8 22:52:27 2014 -0500
Set reasonable defaults for global booleans
We actually need to set a default for allow_claim_draw_dialog to account
for cases where games are loaded instead of started new.
game_needs_saving should already be covered everywhere, but it doesn't
hurt to set this. By default, games don't need saved, since nothing has
happened yet.
src/gnome-chess.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 26bf0a5..76ea50d 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -49,8 +49,8 @@ public class Application : Gtk.Application
private ChessGame game;
private string autosave_filename;
private File game_file;
- private bool game_needs_saving;
- private bool allow_claim_draw_dialog;
+ private bool game_needs_saving = false;
+ private bool allow_claim_draw_dialog = true;
private List<AIProfile> ai_profiles;
private ChessPlayer? opponent = null;
private ChessPlayer? human_player = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]