Remove explicit app closing function (#618)
This commit is contained in:
committed by
GitHub
parent
0ff1627385
commit
4fea48f433
@@ -157,9 +157,9 @@ void onContinueClicked(lv_event_t* event) {
|
||||
break;
|
||||
case Phase::Done: {
|
||||
markCompleted();
|
||||
// Async, non-blocking - must NOT call app_manager_stop()/app_manager_finish()
|
||||
// directly here: this callback runs ON the LVGL task, and app-lifecycle
|
||||
// transitions must happen on this app's own thread (woken via app_event_await()).
|
||||
// Async, non-blocking - must NOT call app_manager_stop() directly here: this
|
||||
// callback runs ON the LVGL task, and app-lifecycle transitions must happen on this
|
||||
// app's own thread (woken via app_event_await()), which closes by returning.
|
||||
AppEvent closeEvent { .type = APP_EVENT_CLOSE, .timestamp = 0, .result = {} };
|
||||
app_event_emit(ctx->appInstanceId, &closeEvent);
|
||||
break;
|
||||
@@ -243,7 +243,6 @@ int32_t appMain(uint32_t appInstanceId, int argc, char* argv[]) {
|
||||
}
|
||||
switch (event.type) {
|
||||
case APP_EVENT_CLOSE:
|
||||
app_manager_finish(appInstanceId);
|
||||
shouldClose = true;
|
||||
break;
|
||||
case APP_EVENT_RESULT:
|
||||
|
||||
Reference in New Issue
Block a user