[gnome-nibbles] Don't show the scores dialog twice when getting a high score



commit 01dc9b1b342d7e98d3b329760bf4d2fb0a32205c
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Sep 19 22:03:50 2015 -0500

    Don't show the scores dialog twice when getting a high score

 src/gnome-nibbles.vala |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index a9792a3..1ca3bc5 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -604,9 +604,7 @@ public class Nibbles : Gtk.Application
 
         try
         {
-            if (scores_context.add_score (score, get_scores_category (game.speed, game.fakes)))
-                scores_context.run_dialog ();
-            else
+            if (!scores_context.add_score (score, get_scores_category (game.speed, game.fakes)))
             {
                 var scores = scores_context.get_best_n_scores (get_scores_category (game.speed, game.fakes), 
10);
                 game_over_cb (score, scores.last ().data.score);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]