Fix the app session not being cleared when ending, or resetting.

This commit is contained in:
zontreck 2025-06-06 14:37:22 -07:00
parent ae035424c1
commit 55c805a315
3 changed files with 6 additions and 2 deletions

View file

@ -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());