Skip to content

Commit a99208d

Browse files
committed
fix file dialog for dolphin selection on windows
1 parent 2ffd447 commit a99208d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Options.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@ void LOptionsMenu::RenderOptionsPopup(LEditorScene* scene)
5656

5757
// Button for file dialog
5858
if (ImGui::Button("...##Dolphin")){
59-
ImGuiFileDialog::Instance()->OpenModal("SetDolphinPath", "Choose Dolphin Installation", "Executables (*.exe){.exe}", mTempOptions.mDolphinPath);
59+
IGFD::FileDialogConfig cfg { .path = mTempOptions.mDolphinPath, .flags = ImGuiFileDialogFlags_Modal };
60+
ImGuiFileDialog::Instance()->OpenDialog("SetDolphinPath", "Choose Dolphin Executable", "Executables (*.exe){.exe}", cfg);
6061
}
6162
#else
6263
LUIUtility::RenderTextInput("Dolphin Command (ex, dolphin-emu)", &mTempOptions.mDolphinPath, 500);
6364
ImGui::SameLine(605);
6465
#endif
65-
66+
6667
// Render file dialog if open
6768
if (LUIUtility::RenderFileDialog("SetDolphinPath", path))
6869
mTempOptions.mDolphinPath = path;

0 commit comments

Comments
 (0)