ux: Handle project loading errors better

This commit is contained in:
WerWolv
2022-09-20 15:33:36 +02:00
parent e0e2996e25
commit 1d4cbbe418
17 changed files with 43 additions and 5 deletions

View File

@@ -45,6 +45,10 @@ namespace hex {
log::info("{}", e.what());
result = false;
}
if (!result && handler.required) {
return false;
}
}
for (const auto &provider : ImHexApi::Provider::getProviders()) {
@@ -57,12 +61,16 @@ namespace hex {
log::info("{}", e.what());
result = false;
}
if (!result && handler.required) {
return false;
}
}
}
ProjectFile::s_currProjectPath = filePath;
return result;
return true;
}
bool ProjectFile::store(std::optional<std::fs::path> filePath) {