mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Window: Fixed windows using the ImGuiWindowFlags_NoSavedSettings flag from not using the same default position as other windows. (#1760)
This commit is contained in:
		| @@ -5363,13 +5363,13 @@ static ImGuiWindow* CreateNewWindow(const char* name, ImVec2 size, ImGuiWindowFl | ||||
|     window->Flags = flags; | ||||
|     g.WindowsById.SetVoidPtr(window->ID, window); | ||||
|  | ||||
|     // Default/arbitrary window position. Use SetNextWindowPos() with the appropriate condition flag to change the initial position of a window. | ||||
|     window->Pos = window->PosFloat = ImVec2(60, 60); | ||||
|  | ||||
|     // User can disable loading and saving of settings. Tooltip and child windows also don't store settings. | ||||
|     if (!(flags & ImGuiWindowFlags_NoSavedSettings)) | ||||
|     { | ||||
|         // Retrieve settings from .ini file | ||||
|         // Use SetWindowPos() or SetNextWindowPos() with the appropriate condition flag to change the initial position of a window. | ||||
|         window->Pos = window->PosFloat = ImVec2(60, 60); | ||||
|  | ||||
|         if (ImGuiWindowSettings* settings = ImGui::FindWindowSettings(window->ID)) | ||||
|         { | ||||
|             SetWindowConditionAllowFlags(window, ImGuiCond_FirstUseEver, false); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user