diff --git a/lib/consts.dart b/lib/consts.dart index cb01dd9..444503b 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -9,7 +9,7 @@ class TTConsts { static get SESSION_SERVER => "https://api.zontreck.com/timetrack/$UPDATE_CHANNEL/timetrack.php"; - static const VERSION = "1.0.0-beta.23"; + static const VERSION = "1.0.0-beta.24"; static bool UPDATE_AVAILABLE = false; static UpdateChannel UPDATE_CHANNEL = UpdateChannel.beta; diff --git a/lib/main.dart b/lib/main.dart index b5bed5c..def8946 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -30,7 +30,7 @@ Future main() async { SessionData.LastSessionID = sess; if (SessionData.LastSessionID.isNotEmpty) { await SessionData.DownloadData(); - if (SessionData.LastSessionID.isEmpty) { + if (!SessionData.IsReadOnly) { // Invalid session token SessionData.DisplayError = "The URL and or session token is invalid"; } diff --git a/pubspec.yaml b/pubspec.yaml index a21113c..99fe6f6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.0-beta.23 +version: 1.0.0-beta.24 environment: sdk: ^3.7.2