[lightsoff/wip/gtkview] Implemented reset game
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lightsoff/wip/gtkview] Implemented reset game
- Date: Fri, 29 Jun 2018 20:59:18 +0000 (UTC)
commit d8dda942deb6c1e65811c240668a3600fc1bc25d
Author: Robert Roth <robert roth off gmail com>
Date: Fri Jun 29 23:28:44 2018 +0300
Implemented reset game
src/game-view-gtk.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/game-view-gtk.vala b/src/game-view-gtk.vala
index b372320..62c4dc9 100644
--- a/src/game-view-gtk.vala
+++ b/src/game-view-gtk.vala
@@ -22,8 +22,8 @@ public class GtkGameView : Gtk.Grid, GameView {
}
public void reset_game ()
{
-
-
+ current_level = 1;
+ load_level (current_level);
}
public GtkGameView (int level)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]