13
0

Do not select re-imported tracks

Stem-export defaults to use selected tracks. This retains
the selection, so focus remains. Repeat stem export will use
previously exported tracks if the selection is empty, or the
current selection (again).
This commit is contained in:
Robin Gareus 2022-05-16 01:03:37 +02:00
parent 7c2cb31b63
commit b11f76d748
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 6 additions and 1 deletions

View File

@ -438,6 +438,7 @@ Editor::Editor ()
, autoscroll_cnt (0)
, autoscroll_widget (0)
, show_gain_after_trim (false)
, _no_not_select_reimported_tracks (false)
, selection_op_cmd_depth (0)
, selection_op_history_it (0)
, no_save_instant (false)
@ -5742,7 +5743,7 @@ Editor::add_stripables (StripableList& sl)
* than just VCAs
*/
if (!from_scratch && !new_selection.empty()) {
if (!from_scratch && !_no_not_select_reimported_tracks && !new_selection.empty()) {
selection->set (new_selection);
begin_selection_op_history();
}

View File

@ -2133,6 +2133,8 @@ private:
/* audio export */
bool _no_not_select_reimported_tracks;
enum BounceTarget {
NewSource,
NewTrigger,

View File

@ -34,6 +34,7 @@
#include "pbd/gstdio_compat.h"
#include "pbd/pthread_utils.h"
#include "pbd/unwind.h"
#include "ardour/audio_track.h"
#include "ardour/audiofilesource.h"
@ -83,6 +84,7 @@ void
Editor::stem_export ()
{
StemExportDialog dialog (*this);
PBD::Unwinder<bool> uw (_no_not_select_reimported_tracks, true);
dialog.set_session (_session);
dialog.run();
}