fixed empty file listing bug

This commit is contained in:
thrust26 2024-01-06 10:26:20 +01:00
parent cafe2acbcf
commit ddb6f49e59

View File

@ -268,7 +268,7 @@ void BrowserDialog::show(string_view startpath,
}
// Set start path
if(_mode != Mode::Directories)
if(_mode != Mode::Directories && !directory.empty())
_fileList->setDirectory(FSNode(directory), fileName);
else
_fileList->setDirectory(FSNode(startpath));