mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 11:12:07 +00:00
feat: remove unneeded async
This commit is contained in:
parent
0ea2c4638b
commit
b54167cd5b
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ export class UpdateManager {
|
|||
WindowManager.mainWindow?.webContents.send("autoUpdaterEvent", event);
|
||||
}
|
||||
|
||||
public static async checkForUpdates() {
|
||||
public static checkForUpdates() {
|
||||
autoUpdater
|
||||
.once("update-available", (info: UpdateInfo) => {
|
||||
this.sendEvent({ type: "update-available", info });
|
||||
|
@ -51,7 +51,7 @@ export class UpdateManager {
|
|||
return isAutoInstallAvailable;
|
||||
}
|
||||
|
||||
public static async checkForUpdatePeriodically() {
|
||||
public static checkForUpdatePeriodically() {
|
||||
if (this.checkTick % 2000 == 0) {
|
||||
this.checkForUpdates();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue