Skip to content

Commit cd5d354

Browse files
authored
Merge pull request #211 from sepiabrown/master
[FIX] : Set `m_CurrentDisplayedFlags` to `vFlags`
2 parents c383fd8 + ff3365a commit cd5d354

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ImGuiFileDialog.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3758,12 +3758,11 @@ 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();
37653765
fdFile.ClearFileLists();
3766-
m_CurrentDisplayedFlags = vFlags;
37673766
}
37683767

37693768
m_NewFrame();

0 commit comments

Comments
 (0)