diff --git a/core/src/gui/widgets/file_select.cpp b/core/src/gui/widgets/file_select.cpp index c9bcd49d..6a909525 100644 --- a/core/src/gui/widgets/file_select.cpp +++ b/core/src/gui/widgets/file_select.cpp @@ -63,7 +63,7 @@ bool FileSelect::pathIsValid() { } void FileSelect::worker() { - auto file = pfd::open_file("Open File", "", _filter); + auto file = pfd::open_file("Open File", pathValid ? std::filesystem::path(expandString(path)).parent_path().string() : "", _filter); std::vector res = file.result(); if (res.size() > 0) {