Fix the app session not being cleared when ending, or resetting.
This commit is contained in:
parent
ae035424c1
commit
55c805a315
3 changed files with 6 additions and 2 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.28";
|
||||
static const VERSION = "1.0.0-beta.29";
|
||||
|
||||
static bool UPDATE_AVAILABLE = false;
|
||||
static UpdateChannel UPDATE_CHANNEL = UpdateChannel.beta;
|
||||
|
|
|
@ -325,6 +325,7 @@ class SessionData {
|
|||
ContainsTripTimes = true;
|
||||
FlutterBackground.disableBackgroundExecution();
|
||||
WakelockPlus.disable();
|
||||
NBTHelper.CommitNBT(data: CompoundTag(), name: "appstate");
|
||||
|
||||
Calls.dispatch();
|
||||
}
|
||||
|
@ -360,6 +361,9 @@ class SessionData {
|
|||
|
||||
if (IsOnTheClock) {
|
||||
await Login();
|
||||
} else {
|
||||
ResetAppSession();
|
||||
return;
|
||||
}
|
||||
|
||||
StartTime = DateTime.parse(ct.get("start")!.asString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue