summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--desktop/packages/mullvad-vpn/src/main/index.ts1
-rw-r--r--desktop/packages/mullvad-vpn/src/main/user-interface.ts3
2 files changed, 4 insertions, 0 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/index.ts b/desktop/packages/mullvad-vpn/src/main/index.ts
index 5f9af69fcd..4fdbac38ec 100644
--- a/desktop/packages/mullvad-vpn/src/main/index.ts
+++ b/desktop/packages/mullvad-vpn/src/main/index.ts
@@ -1154,6 +1154,7 @@ class ApplicationMain
public isUnpinnedWindow = () => this.settings.gui.unpinnedWindow;
public updateAccountData = () => this.account.updateAccountData();
public getAccountData = () => this.account.accountData;
+ public getVersionInfo = () => this.version.fetchLatestVersion();
// TunnelStateHandlerDelegate
public handleTunnelStateUpdate = (tunnelState: TunnelState) => {
diff --git a/desktop/packages/mullvad-vpn/src/main/user-interface.ts b/desktop/packages/mullvad-vpn/src/main/user-interface.ts
index 19b45e22cf..96af5ca7e4 100644
--- a/desktop/packages/mullvad-vpn/src/main/user-interface.ts
+++ b/desktop/packages/mullvad-vpn/src/main/user-interface.ts
@@ -35,6 +35,7 @@ export interface UserInterfaceDelegate {
isLoggedIn(): boolean;
getAccountData(): IAccountData | undefined;
getTunnelState(): TunnelState;
+ getVersionInfo(): Promise<void>;
}
export default class UserInterface implements WindowControllerDelegate {
@@ -380,6 +381,8 @@ export default class UserInterface implements WindowControllerDelegate {
this.delegate.dismissActiveNotifications();
this.delegate.updateAccountData();
+
+ void this.delegate.getVersionInfo();
});
this.windowController.window?.on('blur', () => {