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:
parent
61c6d2bfa1
commit
6e12e71e8b
@ -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);
|
finish_bringing_in_material (*r, input_chan, output_chan, pos, mode, track, track_names[n], pgroup_id, instrument);
|
||||||
|
|
||||||
rlen = (*r)->length();
|
rlen = (*r)->length();
|
||||||
|
Loading…
Reference in New Issue
Block a user