diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-05-16 15:35:59 +0200 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-05-28 13:25:41 +0200 |
| commit | d6550317b1bb61b7b6ae45db9273374beec64984 (patch) | |
| tree | 91b5098fa37dfee7981a0e326b32086fee265f88 | |
| parent | 02f850859e895d9a38b8427ac63cf8f694c29d73 (diff) | |
| download | mullvadvpn-d6550317b1bb61b7b6ae45db9273374beec64984.tar.xz mullvadvpn-d6550317b1bb61b7b6ae45db9273374beec64984.zip | |
Make sure last progress always reaches 100%
The progress can get stuck at 99% as the daemon doesn't send
the last event. However the verification cannot start until
the download is complete, so we can use that as a proxy to
infer that the download is complete - and update last progress
accordingly.
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/app.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/app.tsx b/desktop/packages/mullvad-vpn/src/renderer/app.tsx index 404b522785..7ceab22c2f 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/app.tsx +++ b/desktop/packages/mullvad-vpn/src/renderer/app.tsx @@ -182,6 +182,14 @@ export default class AppRenderer { this.reduxActions.appUpgrade.setLastProgress(appUpgradeEvent.progress); } + // Ensure progress is updated to 100%, since the daemon doesn't send the last event + if ( + appUpgradeEvent.type === 'APP_UPGRADE_STATUS_VERIFYING_INSTALLER' || + appUpgradeEvent.type === 'APP_UPGRADE_STATUS_VERIFIED_INSTALLER' + ) { + this.reduxActions.appUpgrade.setLastProgress(100); + } + // Check if the installer should be started automatically this.appUpgradeMaybeStartInstaller(); }); |
