Fix up more of the update functions
This commit is contained in:
parent
d0ad9c9364
commit
fcf5348f96
5 changed files with 75 additions and 55 deletions
|
@ -5,7 +5,7 @@ import 'package:dio/dio.dart';
|
|||
class TTConsts {
|
||||
static const UPDATE_URL =
|
||||
"https://git.zontreck.com/AriasCreations/TimeTracker/raw/branch/main/latest-releases.json";
|
||||
static const VERSION = "1.0.0-dev.2";
|
||||
static const VERSION = "1.0.0-dev.3";
|
||||
static bool UPDATE_AVAILABLE = false;
|
||||
static UpdateChannel UPDATE_CHANNEL = UpdateChannel.alpha;
|
||||
|
||||
|
@ -18,8 +18,9 @@ class TTConsts {
|
|||
if (VERSION == serverVersion) {
|
||||
// Up to date
|
||||
UPDATE_AVAILABLE = false;
|
||||
} else
|
||||
} else {
|
||||
UPDATE_AVAILABLE = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue