MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / WasOpenedThisFrame

Method WasOpenedThisFrame

ImGuiFileDialog.cpp:4691–4697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4689}
4690
4691bool IGFD::FileDialog::WasOpenedThisFrame(const std::string& vKey) const {
4692 bool res = m_FileDialogInternal.showDialog && m_FileDialogInternal.dLGkey == vKey;
4693 if (res) {
4694 res &= m_FileDialogInternal.lastImGuiFrameCount == GImGui->FrameCount; // return true if a dialog was displayed in this frame
4695 }
4696 return res;
4697}
4698
4699bool IGFD::FileDialog::WasOpenedThisFrame() const {
4700 bool res = m_FileDialogInternal.showDialog;

Callers 2

IGFD_WasOpenedThisFrameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected