[gnome-tetravex] Computing is not magic.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex] Computing is not magic.
- Date: Thu, 19 Sep 2019 16:36:36 +0000 (UTC)
commit 075e9c99a23a29a9c9d9a94bb9a5dfc40e3db0aa
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Sep 19 18:11:31 2019 +0200
Computing is not magic.
See also: 94bf641d.
Fixes #5, for real.
src/gnome-tetravex.vala | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 8b241f7..a425a78 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -360,13 +360,16 @@ private class Tetravex : Gtk.Application
window.destroy ();
else if (score_dialog_action == ResponseType.OK)
new_game ();
- else
+ else if (score_dialog_action != ResponseType.REJECT)
new_game_solve_stack.set_visible_child_name ("new-game");
}
private bool scores_dialog_visible = false; // security for #5
private int show_scores (HistoryEntry? selected_entry = null, bool show_quit = false)
{
+ if (scores_dialog_visible)
+ return ResponseType.REJECT;
+
scores_dialog_visible = true;
ScoreDialog dialog = new ScoreDialog (history, selected_entry, show_quit);
dialog.modal = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]