Return to menu on simulator after event, exit on device

Split _dismiss() into (:debug) popView and (:release) System.exit
so simulator testing stays fluid while device behavior is unchanged.
This commit is contained in:
EiSiMo 2026-04-17 01:33:35 +02:00
parent 35fc70cf14
commit 257ca71d87
2 changed files with 12 additions and 0 deletions

View file

@ -33,6 +33,12 @@ class ErrorView extends WatchUi.View {
_timer.stop(); _timer.stop();
} }
(:debug)
function _dismiss() as Void {
WatchUi.popView(WatchUi.SLIDE_RIGHT);
}
(:release)
function _dismiss() as Void { function _dismiss() as Void {
System.exit(); System.exit();
} }

View file

@ -26,6 +26,12 @@ class SuccessView extends WatchUi.View {
_timer.stop(); _timer.stop();
} }
(:debug)
function _dismiss() as Void {
WatchUi.popView(WatchUi.SLIDE_RIGHT);
}
(:release)
function _dismiss() as Void { function _dismiss() as Void {
System.exit(); System.exit();
} }