Archive: Show loading popup on delete

This commit is contained in:
MX 2022-11-12 16:47:00 +03:00
parent 950dee48a0
commit a821b80ffc
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5
2 changed files with 6 additions and 1 deletions

View file

@ -48,11 +48,16 @@ bool archive_scene_delete_on_event(void* context, SceneManagerEvent event) {
if(event.type == SceneManagerEventTypeCustom) {
if(event.event == GuiButtonTypeRight) {
// Show loading popup on delete
view_dispatcher_switch_to_view(app->view_dispatcher, ArchiveViewStack);
archive_show_loading_popup(app, true);
if(selected->is_app) {
archive_app_delete_file(browser, name);
} else {
archive_delete_file(browser, "%s", name);
}
archive_show_loading_popup(app, false);
archive_show_file_menu(browser, false);
return scene_manager_previous_scene(app->scene_manager);
} else if(event.event == GuiButtonTypeLeft) {

View file

@ -1,5 +1,5 @@
entry,status,name,type,params
Version,+,7.5,,
Version,+,7.51,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
Header,+,applications/services/cli/cli_vcp.h,,

1 entry status name type params
2 Version + 7.5 7.51
3 Header + applications/services/bt/bt_service/bt.h
4 Header + applications/services/cli/cli.h
5 Header + applications/services/cli/cli_vcp.h