fix: update button being shown as clickable on launch (#932)

This commit is contained in:
Aabed Khan 2023-06-12 06:10:53 +05:45 committed by GitHub
parent 185460c054
commit 20ffef39a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,8 @@ class HomeViewModel extends BaseViewModel {
Future<bool> hasManagerUpdates() async { Future<bool> hasManagerUpdates() async {
String currentVersion = await _managerAPI.getCurrentManagerVersion(); String currentVersion = await _managerAPI.getCurrentManagerVersion();
_latestManagerVersion = await _managerAPI.getLatestManagerVersion();
// add v to current version // add v to current version
if (!currentVersion.startsWith('v')) { if (!currentVersion.startsWith('v')) {
currentVersion = 'v$currentVersion'; currentVersion = 'v$currentVersion';