Skip to content

Commit a4078a1

Browse files
committed
[FIX] : Set m_CurrentDisplayedFlags to vFlags
Avoid `m_CurrentDisplayedFlags` not being set to `vFlags` when `m_FileDialogInternal.name == name`. `m_FileDialogInternal.name` is set to `name` in the initial call to the function `Display` as you can see in the line 3811.
1 parent c383fd8 commit a4078a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ImGuiFileDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3758,7 +3758,7 @@ bool IGFD::FileDialog::Display(const std::string& vKey, ImGuiWindowFlags vFlags,
37583758
}
37593759
m_FileDialogInternal.lastImGuiFrameCount = g.FrameCount; // mark this instance as used this frame
37603760

3761-
m_CurrentDisplayedFlags = ImGuiWindowFlags_None;
3761+
m_CurrentDisplayedFlags = vFlags;
37623762
std::string name = m_FileDialogInternal.dLGtitle + "##" + m_FileDialogInternal.dLGkey;
37633763
if (m_FileDialogInternal.name != name) {
37643764
fdFile.ClearComposer();

0 commit comments

Comments
 (0)