ui/ux: Give up on custom ImGui file browsers and just use the system one

This commit is contained in:
WerWolv
2021-02-22 23:36:13 +01:00
parent 7f97416e6e
commit 0af8b8155f
15 changed files with 53 additions and 2545 deletions

View File

@@ -206,7 +206,7 @@ namespace hex {
void ViewPattern::drawMenu() {
if (ImGui::BeginMenu("hex.menu.file"_lang)) {
if (ImGui::MenuItem("hex.view.pattern.menu.file.load_pattern"_lang)) {
View::openFileBrowser("hex.view.pattern.open_pattern"_lang, imgui_addons::ImGuiFileBrowser::DialogMode::OPEN, ".hexpat", [this](auto path) {
View::openFileBrowser("hex.view.pattern.open_pattern"_lang, DialogMode::Open, { { "Pattern File", "hexpat" } }, [this](auto path) {
this->loadPatternFile(path);
});
}