This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
| 13113 | |
| 13114 | // This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. |
| 13115 | void ImGui::ClearWindowSettings(const char* name) |
| 13116 | { |
| 13117 | //IMGUI_DEBUG_LOG("ClearWindowSettings('%s')\n", name); |
| 13118 | ImGuiWindow* window = FindWindowByName(name); |
| 13119 | if (window != NULL) |
| 13120 | { |
| 13121 | window->Flags |= ImGuiWindowFlags_NoSavedSettings; |
| 13122 | InitOrLoadWindowSettings(window, NULL); |
| 13123 | } |
| 13124 | if (ImGuiWindowSettings* settings = window ? FindWindowSettingsByWindow(window) : FindWindowSettingsByID(ImHashStr(name))) |
| 13125 | settings->WantDelete = true; |
| 13126 | } |
| 13127 | |
| 13128 | static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) |
| 13129 | { |
nothing calls this directly
no test coverage detected