Show Progress when importing many channels/tracks

Track creation is a slow. Importing multi-channel files
to new tracks can take a significant amount of time.
This prevents the GUI from being marked as unresponsive and
shows progress.
This commit is contained in:
Robin Gareus 2024-02-24 00:41:42 +01:00
parent 61c6d2bfa1
commit 6e12e71e8b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 7 additions and 0 deletions

View File

@ -1005,6 +1005,13 @@ Editor::add_sources (vector<string> paths,
}
}
if (track_names.size() > 2 && current_interthread_info) {
import_status.current = n;
import_status.total = track_names.size ();
import_status.progress = 0.5;
import_status.doing_what = "Creating Tracks";
ARDOUR::GUIIdle ();
}
finish_bringing_in_material (*r, input_chan, output_chan, pos, mode, track, track_names[n], pgroup_id, instrument);
rlen = (*r)->length();