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 auto-updates on desktop not working since v2.2.2 #3451

Merged
merged 1 commit into from
Jan 11, 2023
Merged

Conversation

cmdcolin
Copy link
Collaborator

In v2.2.2 we introduced a lint rule called no-floating-promises. This was generally good, but introduced an unexpected issue where auto-updates failed to work. The reason being is we await the 'loadURL' method in electron startup, but the code attaches a 'ready-to-show' event handler after the loadURL method, which caused it to never get fired

This moves the 'ready-to-show' event handler above the loadURL method, so that it gets fired

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Jan 11, 2023
@cmdcolin cmdcolin added bug Something isn't working and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Jan 11, 2023
@cmdcolin cmdcolin merged commit 0de6e62 into main Jan 11, 2023
@cmdcolin cmdcolin deleted the fix_auto_update branch January 11, 2023 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant