Skip to content

Commit ddccdd6

Browse files
committed
[FIX] : fix a stupid mistake (#195)
1 parent 7a94bb1 commit ddccdd6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,13 +3786,13 @@ bool IGFD::FileDialog::Display(const std::string& vKey, ImGuiWindowFlags vFlags,
37863786
#ifdef IMGUI_HAS_VIEWPORT
37873787
// if decoration is enabled we disable the resizing feature of imgui for avoid crash with SDL2 and GLFW3
37883788
if (ImGui::GetIO().ConfigViewportsNoDecoration) {
3789-
flags = vFlags;
3789+
m_CurrentDisplayedFlags = vFlags;
37903790
} else {
37913791
auto win = ImGui::GetCurrentWindowRead();
37923792
if (win->Viewport->Idx != 0)
3793-
flags |= ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar;
3793+
m_CurrentDisplayedFlags |= ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar;
37943794
else
3795-
flags = vFlags;
3795+
m_CurrentDisplayedFlags = vFlags;
37963796
}
37973797
#endif // IMGUI_HAS_VIEWPORT
37983798

0 commit comments

Comments
 (0)