Added missing line smh

This commit is contained in:
Ryzerth 2021-04-29 22:09:06 +02:00
parent ce8b4ceb44
commit d3276a1546

View File

@ -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<std::string> res = file.result();
if (res.size() > 0) {