[gnome-nibbles] Always destroy labels when clicking 'Play Again'



commit ef70798c0969f2b56b6317fc469bf410789dd7fb
Author: Iulian Radu <iulian radu67 gmail com>
Date:   Mon Feb 15 21:37:04 2016 +0200

    Always destroy labels when clicking 'Play Again'

 src/gnome-nibbles.vala |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 1b52044..ed5cb72 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -938,13 +938,8 @@ public class Nibbles : Gtk.Application
         button.get_style_context ().add_class ("suggested-action");
         button.clicked.connect (() => {
             game_over_label.destroy ();
-
-            if (game.numhumans == 1)
-                score_label.destroy ();
-
-            if (game.numhumans == 1 && !is_high_score)
-                points_left_label.destroy ();
-
+            score_label.destroy ();
+            points_left_label.destroy ();
             button.destroy ();
 
             new_game_action.set_enabled (true);


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