Commit ef70798c authored by Iulian Radu's avatar Iulian Radu

Always destroy labels when clicking 'Play Again'

parent e4c3d87c
...@@ -938,13 +938,8 @@ public class Nibbles : Gtk.Application ...@@ -938,13 +938,8 @@ public class Nibbles : Gtk.Application
button.get_style_context ().add_class ("suggested-action"); button.get_style_context ().add_class ("suggested-action");
button.clicked.connect (() => { button.clicked.connect (() => {
game_over_label.destroy (); game_over_label.destroy ();
if (game.numhumans == 1)
score_label.destroy (); score_label.destroy ();
if (game.numhumans == 1 && !is_high_score)
points_left_label.destroy (); points_left_label.destroy ();
button.destroy (); button.destroy ();
new_game_action.set_enabled (true); new_game_action.set_enabled (true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment