From 02fcb08b155f57707eacdf80f19f4a13b22ae440 Mon Sep 17 00:00:00 2001 From: Lance Borden <103229880+BanceDev@users.noreply.github.com> Date: Fri, 16 Aug 2024 09:38:20 -0400 Subject: [PATCH] undo last change, old version feels more user friendly --- src/panes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panes.cpp b/src/panes.cpp index 343d424..c4d5e97 100644 --- a/src/panes.cpp +++ b/src/panes.cpp @@ -1552,7 +1552,7 @@ void DrawNewProjectPopup() { } } - static ImGui::FileBrowser pakImportBrowser(ImGuiFileBrowserFlags_MultipleSelection); + static ImGui::FileBrowser pakImportBrowser; pakImportBrowser.SetTitle("Import PAK"); pakImportBrowser.SetTypeFilters({".pak", ".PAK"}); if (projectType == 2) { // Import PAK Type @@ -1567,7 +1567,7 @@ void DrawNewProjectPopup() { pakImportBrowser.Display(); if (pakImportBrowser.HasSelected()) { - paks = pakImportBrowser.GetMultiSelected(); + paks.push_back(pakImportBrowser.GetSelected()); pakImportBrowser.ClearSelected(); } ImGui::Dummy(ImVec2(1, 20));