Retry when failing to re-invoke first slideshow

This commit is contained in:
Willy-JL
2023-06-04 23:34:50 +01:00
parent f292bbe4f6
commit 5c0b07c7b4
@@ -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;
}