storage settings use scene manager for exit

This commit is contained in:
MX
2026-02-12 04:25:06 +03:00
parent a6ca43e877
commit bc6b0d199e
9 changed files with 10 additions and 10 deletions

View File

@@ -157,7 +157,7 @@ bool storage_settings_scene_benchmark_on_event(void* context, SceneManagerEvent
switch(event.event) {
case DialogExResultCenter:
if(app->from_favorites) {
storage_settings_scene_benchmark_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {
@@ -169,7 +169,7 @@ bool storage_settings_scene_benchmark_on_event(void* context, SceneManagerEvent
} else if(event.type == SceneManagerEventTypeBack) {
if(sd_status == FSE_OK) {
if(app->from_favorites) {
storage_settings_scene_benchmark_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {

View File

@@ -49,7 +49,7 @@ bool storage_settings_scene_benchmark_confirm_on_event(void* context, SceneManag
case DialogExResultLeft:
case DialogExResultCenter:
if(app->from_favorites) {
storage_settings_scene_benchmark_confirm_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {

View File

@@ -45,7 +45,7 @@ bool storage_settings_scene_factory_reset_on_event(void* context, SceneManagerEv
case DialogExResultLeft:
scene_manager_set_scene_state(app->scene_manager, StorageSettingsFactoryReset, 0);
if(app->from_favorites) {
storage_settings_scene_factory_reset_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {

View File

@@ -42,7 +42,7 @@ bool storage_settings_scene_format_confirm_on_event(void* context, SceneManagerE
case DialogExResultLeft:
case DialogExResultCenter:
if(app->from_favorites) {
storage_settings_scene_format_confirm_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {

View File

@@ -70,7 +70,7 @@ bool storage_settings_scene_formatting_on_event(void* context, SceneManagerEvent
switch(event.event) {
case DialogExResultLeft:
if(app->from_favorites) {
storage_settings_scene_formatting_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {

View File

@@ -57,7 +57,7 @@ bool storage_settings_scene_internal_info_on_event(void* context, SceneManagerEv
switch(event.event) {
case DialogExResultLeft:
if(app->from_favorites) {
storage_settings_scene_internal_info_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {

View File

@@ -79,7 +79,7 @@ bool storage_settings_scene_sd_info_on_event(void* context, SceneManagerEvent ev
case DialogExResultLeft:
case DialogExResultCenter:
if(app->from_favorites) {
storage_settings_scene_sd_info_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {

View File

@@ -47,7 +47,7 @@ bool storage_settings_scene_unmount_confirm_on_event(void* context, SceneManager
case DialogExResultCenter:
case DialogExResultLeft:
if(app->from_favorites) {
storage_settings_scene_unmount_confirm_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {

View File

@@ -58,7 +58,7 @@ bool storage_settings_scene_unmounted_on_event(void* context, SceneManagerEvent
switch(event.event) {
case DialogExResultCenter:
if(app->from_favorites) {
storage_settings_scene_unmounted_on_exit(app);
scene_manager_stop(app->scene_manager);
view_dispatcher_stop(app->view_dispatcher);
return true;
} else {