use propper current_path()

This commit is contained in:
Green Sky
2025-04-16 15:08:33 +02:00
parent 8a7b823a46
commit da821cefbc
2 changed files with 7 additions and 1 deletions

View File

@@ -15,6 +15,12 @@ void FileSelector::reset(void) {
}
FileSelector::FileSelector(void) {
try {
_current_file_path = std::filesystem::current_path();
} catch (std::filesystem::filesystem_error const& ex) {
std::cerr << "FS: exception creating _current_file_path: " << ex.what() << "\n";
}
reset();
}