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:
parent
35fc70cf14
commit
257ca71d87
2 changed files with 12 additions and 0 deletions
|
|
@ -26,6 +26,12 @@ class SuccessView extends WatchUi.View {
|
|||
_timer.stop();
|
||||
}
|
||||
|
||||
(:debug)
|
||||
function _dismiss() as Void {
|
||||
WatchUi.popView(WatchUi.SLIDE_RIGHT);
|
||||
}
|
||||
|
||||
(:release)
|
||||
function _dismiss() as Void {
|
||||
System.exit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue