mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-21 17:24:37 -05:00
Fix delete_all_remote_backups_for_title not returning to root on completion.
This commit is contained in:
parent
a24331b72a
commit
773acbabc8
|
|
@ -89,6 +89,7 @@ void tasks::titleoptions::delete_all_remote_backups_for_title(sys::Task *task, T
|
|||
|
||||
remote::Item *workDir = remote->get_directory_by_name(remoteTitle);
|
||||
remote->change_directory(workDir);
|
||||
|
||||
remote::Storage::DirectoryListing remoteListing{};
|
||||
remote->get_directory_listing(remoteListing);
|
||||
|
||||
|
|
@ -107,6 +108,8 @@ void tasks::titleoptions::delete_all_remote_backups_for_title(sys::Task *task, T
|
|||
if (!deleted) { ui::PopMessageManager::push_message(popTicks, popFailure); }
|
||||
}
|
||||
|
||||
remote->return_to_root();
|
||||
|
||||
const std::string popMessage = stringutil::get_formatted_string(popSuccess, title);
|
||||
ui::PopMessageManager::push_message(popTicks, popMessage);
|
||||
task->complete();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user