ux: Improved dropped file loading; Added magic db loading

This commit is contained in:
WerWolv
2021-09-30 12:29:03 +02:00
parent 194bc3e5be
commit d3e3de3fa2
7 changed files with 31 additions and 6 deletions

View File

@@ -197,7 +197,6 @@ namespace hex {
} else if (name == "Open Project") {
hex::openFileBrowser("hex.view.hexeditor.open_project"_lang, DialogMode::Open, { { "Project File", "hexproj" } }, [this](auto path) {
ProjectFile::load(path);
EventManager::post<EventProjectFileLoad>();
this->getWindowOpenState() = true;
});
}
@@ -473,7 +472,6 @@ namespace hex {
if (ImGui::MenuItem("hex.view.hexeditor.menu.file.open_project"_lang, "")) {
hex::openFileBrowser("hex.view.hexeditor.menu.file.open_project"_lang, DialogMode::Open, { { "Project File", "hexproj" } }, [this](auto path) {
ProjectFile::load(path);
EventManager::post<EventProjectFileLoad>();
});
}