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

@@ -78,7 +78,9 @@ namespace hex::plugin::builtin {
} else if (name == "Open Project") {
fs::openFileBrowser(fs::DialogMode::Open, { {"Project File", "hexproj"} },
[](const auto &path) {
ProjectFile::load(path);
if (!ProjectFile::load(path)) {
View::showErrorPopup("hex.builtin.popup.error.project.load"_lang);
}
});
}
});