Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Sketcher: restore toolbars when changing between workbenches in edit … #9150

Merged
merged 3 commits into from Apr 3, 2023

Conversation

wwmayer
Copy link
Contributor

@wwmayer wwmayer commented Apr 1, 2023

…mode

This partially fixes issue #9135

Thank you for creating a pull request to contribute to FreeCAD! Place an "X" in between the brackets below to "check off" to confirm that you have satisfied the requirement, or ask for help in the FreeCAD forum if there is something you don't understand.

  • Your Pull Request meets the requirements outlined in section 5 of CONTRIBUTING.md for a Valid PR

Please remember to update the Wiki with the features added or changed once this PR is merged.
Note: If you don't have wiki access, then please mention your contribution on the 1.0 Changelog Forum Thread.


@github-actions github-actions bot added the WB Sketcher Related to the Sketcher Workbench label Apr 1, 2023
}

// If hide style is FORCE_HIDE then never save the state because it's
// alwas controlled by the application.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// alwas controlled by the application.
// always controlled by the application.

@chennes
Copy link
Member

chennes commented Apr 2, 2023

Do you have an opinion about the

'auto it' can be declared as 'auto *it' [readability-qualified-auto]

linter warning? I'm not a huge fan of the unnecessary *, I feel like C++ has enough punctuation already and to me that doesn't make the code any clearer in most cases (though I grant that there are some exceptions where it does make sense to include the *). Anyway, I'd be in favor of disabling that lint check.

@wwmayer
Copy link
Contributor Author

wwmayer commented Apr 2, 2023

linter warning? I'm not a huge fan of the unnecessary *, I feel like C++ has enough punctuation already and to me that doesn't make the code any clearer in most cases (though I grant that there are some exceptions where it does make sense to include the *). Anyway, I'd be in favor of disabling that lint check.

Absolutely. We should disable the warning.

Another warning that I see frequently is that a function could be made static but the code checker completely ignores the fact that in many cases the function overrides a virtual function and thus it's not possible to make it static.

@wwmayer wwmayer merged commit 191289a into FreeCAD:master Apr 3, 2023
5 checks passed
@wwmayer wwmayer deleted the issue_9135 branch April 3, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WB Sketcher Related to the Sketcher Workbench
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants