fix(electron): auto update check on windows (#8137)
turns out activate event is only available on macos
This commit is contained in:
@@ -142,7 +142,7 @@ export const registerUpdater = async () => {
|
|||||||
|
|
||||||
// check update whenever the window is activated
|
// check update whenever the window is activated
|
||||||
let lastCheckTime = 0;
|
let lastCheckTime = 0;
|
||||||
app.on('activate', () => {
|
app.on('browser-window-focus', () => {
|
||||||
(async () => {
|
(async () => {
|
||||||
if (
|
if (
|
||||||
configured &&
|
configured &&
|
||||||
|
|||||||
Reference in New Issue
Block a user