| 4062 | } |
| 4063 | |
| 4064 | bool IGFD::FileDialog::m_DrawOkButton() { |
| 4065 | auto& fdFile = m_FileDialogInternal.fileManager; |
| 4066 | if ((m_FileDialogInternal.canWeContinue && strlen(fdFile.fileNameBuffer)) || // |
| 4067 | (m_FileDialogInternal.getDialogConfig().flags & ImGuiFileDialogFlags_OptionalFileName)) { // optional |
| 4068 | if (IMGUI_BUTTON(okButtonString "##validationdialog", ImVec2(okButtonWidth, 0.0f)) || m_FileDialogInternal.isOk) { |
| 4069 | m_FileDialogInternal.isOk = true; |
| 4070 | return true; |
| 4071 | } |
| 4072 | |
| 4073 | #if !invertOkAndCancelButtons |
| 4074 | ImGui::SameLine(); |
| 4075 | #endif |
| 4076 | } |
| 4077 | |
| 4078 | return false; |
| 4079 | } |
| 4080 | |
| 4081 | bool IGFD::FileDialog::m_DrawCancelButton() { |
| 4082 | if (IMGUI_BUTTON(cancelButtonString "##validationdialog", ImVec2(cancelButtonWidth, 0.0f)) || m_FileDialogInternal.needToExitDialog) // dialog exit asked |
nothing calls this directly
no outgoing calls
no test coverage detected