From 2d0e24bdf8f3a44bf1123de2aa418eab6d1ab8e2 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 9 Jul 2018 17:32:59 +0200 Subject: [PATCH] Move Reset Grid Implementation to Engine --- lib/app_component.dart | 1 - lib/src/Engine.dart | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app_component.dart b/lib/app_component.dart index 458b080..8e726df 100644 --- a/lib/app_component.dart +++ b/lib/app_component.dart @@ -43,7 +43,6 @@ class AppComponent implements OnInit { } void onResetClicked() { - engine.running = false; engine.reset(); } diff --git a/lib/src/Engine.dart b/lib/src/Engine.dart index 3a8263a..80f16ed 100644 --- a/lib/src/Engine.dart +++ b/lib/src/Engine.dart @@ -29,6 +29,7 @@ class Engine { void reset() { _grid.reset(); + running = false; } void clear() {