From 5d0dbfff98c19284a6fc65f0f36666a0011b86a6 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Mon, 13 May 2024 18:37:48 -0400 Subject: [PATCH] Only show save icon on server sync --- src/system/game-data.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/system/game-data.ts b/src/system/game-data.ts index 90722d1ce..d0e296cc4 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -809,7 +809,8 @@ export class GameData { Utils.executeIf(!skipVerification, updateUserInfo).then(success => { if (success !== null && !success) return resolve(false); - this.scene.ui.savingIcon.show(); + if (sync) + this.scene.ui.savingIcon.show(); const sessionData = this.getSessionSaveData(scene); const maxIntAttrValue = Math.pow(2, 31); @@ -825,7 +826,8 @@ export class GameData { Utils.apiPost('savedata/updateall', JSON.stringify(request, (k: any, v: any) => typeof v === 'bigint' ? v <= maxIntAttrValue ? Number(v) : v.toString() : v), undefined, true) .then(response => response.text()) .then(error => { - this.scene.ui.savingIcon.hide(); + if (sync) + this.scene.ui.savingIcon.hide(); if (error) { if (error.startsWith('client version out of date')) { this.scene.clearPhaseQueue();