Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improve handling of wxWidgets Project version #1325

Merged
merged 1 commit into from
Dec 3, 2023
Merged

Conversation

Randalphwa
Copy link
Collaborator

This removes the 3.1 default setting making it possible to set the value without having Preferences override it.

This PR changes how the wxWidgets version is set. It removes the default "3.1" setting so that it can be overridden with a specific setting. If it's not set, and the UI is loaded, it will default to the User's preference (defaults to 3.2). The exception to this is Imported projects -- since all other designers (as of 12/2023) are generating 3.1 code, the default is set to 3.1 for imported projects.

Note that this has no effect on wxPython or wxRuby code generation, since they are both built on top of wxWidgets 3.2.

This second part of the PR adds a Project.is_wxWidgets31() which can replace Project.as_string(prop_wxWidgets_version) == "3.1" to make the code more readable.

This removes the 3.1 default setting making it possible to set the value without
having Preferences override it.
@Randalphwa Randalphwa merged commit b2bdffd into main Dec 3, 2023
@Randalphwa Randalphwa deleted the wxWidgets_version branch December 3, 2023 14:44
Randalphwa added a commit that referenced this pull request Dec 10, 2023
Improve handling of wxWidgets Project version
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant