mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-19 20:34:19 -07:00
Retry when failing to re-invoke first slideshow
This commit is contained in:
@@ -48,12 +48,15 @@ bool xtreme_app_scene_start_on_event(void* context, SceneManagerEvent event) {
|
||||
scene_manager_next_scene(app->scene_manager, XtremeAppSceneMisc);
|
||||
break;
|
||||
case VarItemListIndexVersion: {
|
||||
if(storage_common_copy(
|
||||
furi_record_open(RECORD_STORAGE),
|
||||
EXT_PATH("dolphin/xfwfirstboot.bin"),
|
||||
EXT_PATH(".slideshow"))) {
|
||||
app->show_slideshow = true;
|
||||
xtreme_app_apply(app);
|
||||
for(int i = 0; i < 10; i++) {
|
||||
if(storage_common_copy(
|
||||
furi_record_open(RECORD_STORAGE),
|
||||
EXT_PATH("dolphin/xfwfirstboot.bin"),
|
||||
EXT_PATH(".slideshow"))) {
|
||||
app->show_slideshow = true;
|
||||
xtreme_app_apply(app);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user