[FL-3053] Archive browser delete fix (#2163)

This commit is contained in:
Nikolay Minaylov 2022-12-20 17:46:05 +03:00 committed by GitHub
parent a9c2b4d6a0
commit e0d716647c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,6 +143,8 @@ bool archive_scene_browser_on_event(void* context, SceneManagerEvent event) {
break; break;
case ArchiveBrowserEventFileMenuDelete: case ArchiveBrowserEventFileMenuDelete:
if(archive_get_tab(browser) != ArchiveTabFavorites) { if(archive_get_tab(browser) != ArchiveTabFavorites) {
scene_manager_set_scene_state(
archive->scene_manager, ArchiveAppSceneBrowser, SCENE_STATE_NEED_REFRESH);
scene_manager_next_scene(archive->scene_manager, ArchiveAppSceneDelete); scene_manager_next_scene(archive->scene_manager, ArchiveAppSceneDelete);
} }
consumed = true; consumed = true;