Skip to content

Persist QColorDialog custom color selections in ModOrganizer.ini#2396

Open
JonathanFeenstra wants to merge 1 commit into
ModOrganizer2:masterfrom
JonathanFeenstra:store-custom-colors
Open

Persist QColorDialog custom color selections in ModOrganizer.ini#2396
JonathanFeenstra wants to merge 1 commit into
ModOrganizer2:masterfrom
JonathanFeenstra:store-custom-colors

Conversation

@JonathanFeenstra
Copy link
Copy Markdown
Member

Custom colors selected in QColorDialog used to be saved globally in Mod Organizer v2.5.2, but in Qt 6.11.0, this is no longer the case. As a result, they now reset every time after restarting the program.

This PR fixes that by storing them in ModOrganizer.ini.

@Silarn Silarn self-requested a review May 14, 2026 06:36
Copy link
Copy Markdown
Member

@Silarn Silarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, this is working.

@Silarn Silarn requested a review from Holt59 May 14, 2026 06:38
@Holt59
Copy link
Copy Markdown
Member

Holt59 commented May 14, 2026

Does this mean that people upgrading to latest MO2 will lose their color settings? If yes, is there a way to migrate?

@JonathanFeenstra
Copy link
Copy Markdown
Member Author

They seem to be stored in the Windows registry under HKEY_CURRENT_USER\Software\QtProject\OrganizationDefaults\Qt\customColors. Should we add an option in the installer to migrate them to ModOrganizer.ini?

@Silarn
Copy link
Copy Markdown
Member

Silarn commented May 15, 2026

Might be better to use MO2's upgrade functions to look for and import those settings if they are not defined in the local config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants