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

Fixes "Menu Bar Items Not Updating (#1684)" #1697

Merged
merged 8 commits into from May 16, 2024

Conversation

danielzsh
Copy link
Contributor

@danielzsh danielzsh commented May 1, 2024

Description

The issue is described in detail in #1684.

I tried to resolve a related issue, #1696, but it was harder than I anticipated since the state of the Utility Area is stored separate to the other panes for some reason. Any ideas to resolve this slight issue would be welcome :)

EDIT: I think I fixed it!

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

Screen.Recording.2024-05-01.at.9.08.19.AM.mov

@thecoolwinter
Copy link
Collaborator

I fix lint errors and I can review 👍

@danielzsh
Copy link
Contributor Author

By the way, the SwiftLint error feels a bit overly constraining, especially considering it limits the class body to 250 lines and my code currently has 251; is there a way to perhaps silence the warning, or is that not recommended?

@matthijseikelenboom
Copy link
Contributor

Yeah I don't understand why it gives an error now on that file. The length of the class is way longer than 251 lines...

@danielzsh
Copy link
Contributor Author

@thecoolwinter bump?

@thecoolwinter
Copy link
Collaborator

Yeah swiftlint errors can be annoying, especially when it's one line over the limit. But in this case we can just move some code to an extension. I believe all the toolbar code can be moved to a new file without modification (lines 141-238ish). Just a new file in the same dir named CodeEditWindowController+Toolbar.swift.

@danielzsh
Copy link
Contributor Author

@thecoolwinter does this look good?

@thecoolwinter thecoolwinter merged commit 78e75dc into CodeEditApp:main May 16, 2024
2 checks passed
@thecoolwinter
Copy link
Collaborator

Looks good, thanks for your patience!

@austincondiff
Copy link
Collaborator

@allcontributors add @danielzsh for bug

Copy link
Contributor

@austincondiff

I've put up a pull request to add @danielzsh! 🎉

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.

🐞 Hide Utility Area Command tied to Inspector instead of Utility Area 🐞 Menu Bar Items Not Updating
5 participants