summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-10-16 17:34:38 +0200
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-10-23 10:22:41 +0200
commit37be2b6cc75c821fd686255b74a156c69da80291 (patch)
tree4fae0366d3f022d6aeb89b363a456b0b97842426
parent53d22740f271f806a42763c148d21949724d783e (diff)
parent36b5b0f87eb14f0d000063b805d69a6f2d515f3f (diff)
downloadmullvadvpn-37be2b6cc75c821fd686255b74a156c69da80291.tar.xz
mullvadvpn-37be2b6cc75c821fd686255b74a156c69da80291.zip
Merge branch 'perform-version-check-when-the-app-is-opened-des-2614' into prepare-2025.13
-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', () => {