forked from Green-Sky/tomato
use propper current_path()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user