This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
| 15327 | |
| 15328 | // This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. |
| 15329 | void ImGui::ClearWindowSettings(const char* name) |
| 15330 | { |
| 15331 | //IMGUI_DEBUG_LOG("ClearWindowSettings('%s')\n", name); |
| 15332 | ImGuiWindow* window = FindWindowByName(name); |
| 15333 | if (window != NULL) |
| 15334 | { |
| 15335 | window->Flags |= ImGuiWindowFlags_NoSavedSettings; |
| 15336 | InitOrLoadWindowSettings(window, NULL); |
| 15337 | } |
| 15338 | if (ImGuiWindowSettings* settings = window ? FindWindowSettingsByWindow(window) : FindWindowSettingsByID(ImHashStr(name))) |
| 15339 | settings->WantDelete = true; |
| 15340 | } |
| 15341 | |
| 15342 | static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) |
| 15343 | { |
nothing calls this directly
no test coverage detected