Fix invalid url or token invalid message
This commit is contained in:
parent
5e70507c19
commit
8253e19079
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -30,7 +30,7 @@ Future<void> 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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue