[gnome-nibbles/gnome-3-24] Fix display of level completed label and next level button



commit 4d2ec48bbf06609bfaaba2bd98c566c17806985d
Author: Pedro Aldatxarren <pedro areizaga gmail com>
Date:   Tue Jun 13 00:46:35 2017 +0200

    Fix display of level completed label and next level button
    
    Fixes #22

 src/gnome-nibbles.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 6cd0190..e6f0a76 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -876,6 +876,8 @@ public class Nibbles : Gtk.Application
         if (game.current_level == NibblesGame.MAX_LEVEL)
             return;
 
+        view.hide ();
+
         new_game_action.set_enabled (false);
         pause_action.set_enabled (false);
 
@@ -900,6 +902,8 @@ public class Nibbles : Gtk.Application
 
             headerbar.set_title (_("Level %d").printf (game.current_level));
 
+            view.show ();
+
             restart_game ();
         });
 


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