mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-15 12:20:01 +01:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user