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

fix: ensure menu items update properly #2605

Merged
merged 3 commits into from
Aug 30, 2023

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Aug 30, 2023

fixes #2599

There was a previous bug with the menu that we fixed with #2594 but that resulted in some properties not being updated because we were updating a new Menu.buildFromTemplate object, and not calling
tray.setContextMenu(menu) again.

This fix reverts some of those changes, but still ensures that #2591 is not occurring.

This change also fixes an issue, probably introduced with the lazy ctx refactor, that prevented the systray menu items from being re-translated when the language was updated.

@SgtPooki SgtPooki linked an issue Aug 30, 2023 that may be closed by this pull request
@SgtPooki SgtPooki changed the title fix: use same menu ref when updating menu fix: ensure menu items update properly Aug 30, 2023
@SgtPooki SgtPooki marked this pull request as ready for review August 30, 2023 20:51
@SgtPooki SgtPooki requested review from whizzzkid and a team as code owners August 30, 2023 20:51
Copy link
Contributor

@whizzzkid whizzzkid left a comment

Choose a reason for hiding this comment

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

great! lgtm :)

src/common/ipc-main-events.js Show resolved Hide resolved
src/i18n.js Outdated Show resolved Hide resolved
Co-authored-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
@SgtPooki SgtPooki merged commit 5ead923 into main Aug 30, 2023
7 checks passed
@SgtPooki SgtPooki deleted the 2599-cant-run-garbage-collector-grayed-out branch August 30, 2023 23:47
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.

Can't run, Garbage Collector grayed out.
2 participants