mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Cleanup "Clean-up", hide dialog before starting cleanup
This commit is contained in:
parent
58babb1e9b
commit
1557ea5314
1 changed files with 2 additions and 6 deletions
|
|
@ -4198,17 +4198,14 @@ Clean-up will move all unused files to a \"dead\" location."));
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
checker.hide();
|
||||||
|
|
||||||
ARDOUR::CleanupReport rep;
|
ARDOUR::CleanupReport rep;
|
||||||
|
|
||||||
editor->prepare_for_cleanup ();
|
editor->prepare_for_cleanup ();
|
||||||
|
|
||||||
/* do not allow flush until a session is reloaded */
|
/* do not allow flush until a session is reloaded */
|
||||||
|
ActionManager::get_action (X_("Main"), X_("FlushWastebasket"))->set_sensitive (false);
|
||||||
Glib::RefPtr<Action> act = ActionManager::get_action (X_("Main"), X_("FlushWastebasket"));
|
|
||||||
if (act) {
|
|
||||||
act->set_sensitive (false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_session->cleanup_sources (rep)) {
|
if (_session->cleanup_sources (rep)) {
|
||||||
editor->finish_cleanup ();
|
editor->finish_cleanup ();
|
||||||
|
|
@ -4217,7 +4214,6 @@ Clean-up will move all unused files to a \"dead\" location."));
|
||||||
|
|
||||||
editor->finish_cleanup ();
|
editor->finish_cleanup ();
|
||||||
|
|
||||||
checker.hide();
|
|
||||||
display_cleanup_results (rep, _("Cleaned Files"), false);
|
display_cleanup_results (rep, _("Cleaned Files"), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue