This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
| 15723 | |
| 15724 | // This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. |
| 15725 | void ImGui::ClearWindowSettings(const char* name) |
| 15726 | { |
| 15727 | //IMGUI_DEBUG_LOG("ClearWindowSettings('%s')\n", name); |
| 15728 | ImGuiWindow* window = FindWindowByName(name); |
| 15729 | if (window != NULL) |
| 15730 | { |
| 15731 | window->Flags |= ImGuiWindowFlags_NoSavedSettings; |
| 15732 | InitOrLoadWindowSettings(window, NULL); |
| 15733 | } |
| 15734 | if (ImGuiWindowSettings* settings = window ? FindWindowSettingsByWindow(window) : FindWindowSettingsByID(ImHashStr(name))) |
| 15735 | settings->WantDelete = true; |
| 15736 | } |
| 15737 | |
| 15738 | static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) |
| 15739 | { |
nothing calls this directly
no test coverage detected