Switch to using the saved data flag

This commit is contained in:
zontreck 2025-05-25 16:15:11 -07:00
parent cbe676a359
commit c70a6f4f1d
2 changed files with 2 additions and 1 deletions

View file

@ -462,6 +462,7 @@ class SessionData {
static Future<bool> DownloadData() async {
Dio dio = Dio();
IsSavedData = false;
Map<String, dynamic> payload = {"cmd": "get", "id": LastSessionID};
// Send the data, and get the response

View file

@ -30,7 +30,7 @@ Future<void> main() async {
SessionData.LastSessionID = sess;
if (SessionData.LastSessionID.isNotEmpty) {
await SessionData.DownloadData();
if (!SessionData.IsReadOnly) {
if (!SessionData.IsSavedData) {
// Invalid session token
SessionData.DisplayError = "The URL and or session token is invalid";
}