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: use powerMonitor.on() only after app is ready #21941
Merged
zcbenz
merged 4 commits into
7-1-x
from
trop/7-1-x-bp-fix-use-powermonitor-on-only-after-app-is-ready-1580235601272
Jan 29, 2020
Merged
fix: use powerMonitor.on() only after app is ready #21941
zcbenz
merged 4 commits into
7-1-x
from
trop/7-1-x-bp-fix-use-powermonitor-on-only-after-app-is-ready-1580235601272
Jan 29, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powerMonitor can't be used until the app is ready; however, on Linux, powerMonitor.on() was called as soon as lib/browser/api/power-monitor.ts was loaded. This patch takes @vladimiry's suggestion of wrapping that in an app.on('ready') handler to prevent powerMonitor.on() from being called prematurely. Fixes #21716
Fix the previous commit's app-is-ready handler by checking to see if app is already ready when power-monitor.ts is loaded.
4 tasks
ckerr
approved these changes
Jan 28, 2020
zcbenz
approved these changes
Jan 29, 2020
Release Notes Persisted
|
zcbenz
deleted the
trop/7-1-x-bp-fix-use-powermonitor-on-only-after-app-is-ready-1580235601272
branch
January 29, 2020 09:45
tessus
added a commit
to tessus/joplin
that referenced
this pull request
Feb 8, 2020
This is only a minor bump but several issues have been fixed since 7.1.9: - Fixed an edge case in checkbox logic on Windows. electron/electron#21860 - Fixed an issue where window.print() only worked once on a single BrowserWindow. electron/electron#21911 - Fixed an issue where the credits set in About Panel credits were not dark mode aware on macOS. electron/electron#21924 - Fixed error thrown when importing powerMonitor on Linux before app's 'ready' event. electron/electron#21941 - Fixed fuzzy font rendering when hot-plugging displays on macOS Catalina. electron/electron#21872 - Fixed BrowserWindow.setFocusable(true) not working on Windows. electron/electron#21855 - Fixed set-cookie header not passed in net module. electron/electron#21770 - Fixed an issue where custom stream protocols would sometimes not complete responses when the data stream ended. electron/electron#21758 - Fixed crash when restoring minimized hidden window on Windows. electron/electron#21820 - Fixed issue where non-zero size pixels in CSS styles could be rounded down to zero size pixels. electron/electron#21857 - Fixed memory leak when using javascript generator functions. electron/electron#21773 - Fixed potential hang when sending synchronous IPC messages on process shutdown. electron/electron#21776
tessus
added a commit
to tessus/joplin
that referenced
this pull request
Feb 12, 2020
This is only a minor bump but several issues have been fixed since 7.1.9: - Fixed an issue where sending complex objects over IPC could in some cases cause the renderer process to be terminated. electron/electron#21922 - Fixed crash with Date.toLocaleString for invalid locale and locale of the format aa@BB. electron/electron#21969 - Fixed flash plugin not working. electron/electron#22109 - Fixed issue where renderers could crash during GC when using the contextBridge module. electron/electron#22112 - Fixed netLog.stopLogging returning undefined instead of the path to the log. electron/electron#21988 - Fixed an edge case in checkbox logic on Windows. electron/electron#21860 - Fixed an issue where window.print() only worked once on a single BrowserWindow. electron/electron#21911 - Fixed an issue where the credits set in About Panel credits were not dark mode aware on macOS. electron/electron#21924 - Fixed error thrown when importing powerMonitor on Linux before app's 'ready' event. electron/electron#21941 - Fixed fuzzy font rendering when hot-plugging displays on macOS Catalina. electron/electron#21872 - Fixed BrowserWindow.setFocusable(true) not working on Windows. electron/electron#21855 - Fixed set-cookie header not passed in net module. electron/electron#21770 - Fixed an issue where custom stream protocols would sometimes not complete responses when the data stream ended. electron/electron#21758 - Fixed crash when restoring minimized hidden window on Windows. electron/electron#21820 - Fixed issue where non-zero size pixels in CSS styles could be rounded down to zero size pixels. electron/electron#21857 - Fixed memory leak when using javascript generator functions. electron/electron#21773 - Fixed potential hang when sending synchronous IPC messages on process shutdown. electron/electron#21776
laurent22
pushed a commit
to laurent22/joplin
that referenced
this pull request
Feb 13, 2020
This is only a minor bump but several issues have been fixed since 7.1.9: - Fixed an issue where sending complex objects over IPC could in some cases cause the renderer process to be terminated. electron/electron#21922 - Fixed crash with Date.toLocaleString for invalid locale and locale of the format aa@BB. electron/electron#21969 - Fixed flash plugin not working. electron/electron#22109 - Fixed issue where renderers could crash during GC when using the contextBridge module. electron/electron#22112 - Fixed netLog.stopLogging returning undefined instead of the path to the log. electron/electron#21988 - Fixed an edge case in checkbox logic on Windows. electron/electron#21860 - Fixed an issue where window.print() only worked once on a single BrowserWindow. electron/electron#21911 - Fixed an issue where the credits set in About Panel credits were not dark mode aware on macOS. electron/electron#21924 - Fixed error thrown when importing powerMonitor on Linux before app's 'ready' event. electron/electron#21941 - Fixed fuzzy font rendering when hot-plugging displays on macOS Catalina. electron/electron#21872 - Fixed BrowserWindow.setFocusable(true) not working on Windows. electron/electron#21855 - Fixed set-cookie header not passed in net module. electron/electron#21770 - Fixed an issue where custom stream protocols would sometimes not complete responses when the data stream ended. electron/electron#21758 - Fixed crash when restoring minimized hidden window on Windows. electron/electron#21820 - Fixed issue where non-zero size pixels in CSS styles could be rounded down to zero size pixels. electron/electron#21857 - Fixed memory leak when using javascript generator functions. electron/electron#21773 - Fixed potential hang when sending synchronous IPC messages on process shutdown. electron/electron#21776
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #21927
See that PR for details.
Notes: Fixed error thrown when importing powerMonitor on Linux before app's 'ready' event.