diff --git a/lib/ui/views/home/home_viewmodel.dart b/lib/ui/views/home/home_viewmodel.dart index b05f0e4d..972a13c1 100644 --- a/lib/ui/views/home/home_viewmodel.dart +++ b/lib/ui/views/home/home_viewmodel.dart @@ -112,13 +112,14 @@ class HomeViewModel extends BaseViewModel { Future hasManagerUpdates() async { String currentVersion = await _managerAPI.getCurrentManagerVersion(); - _latestManagerVersion = await _managerAPI.getLatestManagerVersion(); - + // add v to current version if (!currentVersion.startsWith('v')) { currentVersion = 'v$currentVersion'; } - + + _latestManagerVersion = await _managerAPI.getLatestManagerVersion() ?? currentVersion; + if (_latestManagerVersion != currentVersion) { return true; }