mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-27 04:41:03 +00:00
feat: remove unneeded async
This commit is contained in:
@@ -24,7 +24,7 @@ export class UpdateManager {
|
|||||||
WindowManager.mainWindow?.webContents.send("autoUpdaterEvent", event);
|
WindowManager.mainWindow?.webContents.send("autoUpdaterEvent", event);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async checkForUpdates() {
|
public static checkForUpdates() {
|
||||||
autoUpdater
|
autoUpdater
|
||||||
.once("update-available", (info: UpdateInfo) => {
|
.once("update-available", (info: UpdateInfo) => {
|
||||||
this.sendEvent({ type: "update-available", info });
|
this.sendEvent({ type: "update-available", info });
|
||||||
@@ -51,7 +51,7 @@ export class UpdateManager {
|
|||||||
return isAutoInstallAvailable;
|
return isAutoInstallAvailable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async checkForUpdatePeriodically() {
|
public static checkForUpdatePeriodically() {
|
||||||
if (this.checkTick % 2000 == 0) {
|
if (this.checkTick % 2000 == 0) {
|
||||||
this.checkForUpdates();
|
this.checkForUpdates();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user