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

PR: Fix state handling for toolbars visibility (Toolbar) #17768

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

dalthviz
Copy link
Member

@dalthviz dalthviz commented Apr 26, 2022

Description of Changes

  • Wrote at least one-line docstrings (for any new functions)

Fix inconsistent toolbars visibility state handling when closing due to having to handle last_visible_toolbars (toolbars that are selected) vs visible_toolbars (if all the selected toolbars should be visible or not)

Issue(s) Resolved

Fixes #16930

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: dalthviz

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Works like charm, thanks @dalthviz!

@@ -137,6 +138,7 @@ def update_actions(self):

self.show_toolbars_action.setText(text)
self.show_toolbars_action.setToolTip(tip)
self.toolbars_menu.setEnabled(visible_toolbars)
Copy link
Member

Choose a reason for hiding this comment

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

Nice UX addition @dalthviz!

@ccordoba12 ccordoba12 merged commit e481a99 into spyder-ide:5.x Apr 27, 2022
ccordoba12 added a commit that referenced this pull request Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants