UX improvement: do not ask user confirmation after file selection

Create a source from file; validate the file dialog is enough to create the source (without intermediate step of confirmation).
This commit is contained in:
Bruno Herbelin
2023-03-03 20:46:34 +01:00
parent 3be08a3e63
commit 207aa88daf

View File

@@ -7018,8 +7018,9 @@ void Navigator::RenderNewPannel()
setNewMedia(MEDIA_RECENT, importpath);
// open file
if (!importpath.empty()) {
std::string label = BaseToolkit::transliterate( sourceMediaFileCurrent );
new_source_preview_.setSource( Mixer::manager().createSourceFile(sourceMediaFileCurrent), label);
Mixer::manager().addSource( Mixer::manager().createSourceFile(sourceMediaFileCurrent) );
// close NEW pannel
togglePannelNew();
}
}