If a full directory path is pasted in the File Name input and it's opened it will try to first open that directory, if valid it will open (SpartanJ/ecode#872).

This commit is contained in:
Martín Lucas Golini
2026-04-26 18:33:52 -03:00
parent 4660257857
commit ca3e2e2020

View File

@@ -623,6 +623,20 @@ void UIFileDialog::open() {
if ( usingNativeFileDialog() )
return;
std::string fileText = mFile->getText().toUtf8();
if ( allowFolderSelect() && FileSystem::isDirectory( fileText ) ) {
setCurPath( fileText );
sendCommonEvent( Event::OpenFile );
disableButtons();
closeWindow();
return;
}
auto fullPath( getFullPath() );
if ( mMultiView->getSelection().isEmpty() &&