UI: Reload immediately after importing, deleting save data or killing all scripts (#2697)

This commit is contained in:
catloversg
2026-04-28 14:08:13 +07:00
committed by GitHub
parent 99afa3cd50
commit 4a91a71891
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ export function GameRoot(): React.ReactElement {
saveObject
.saveGame()
.then(() => {
setTimeout(() => htmlLocation.reload(), 2000);
setTimeout(() => htmlLocation.reload(), 0);
})
.catch((error) => {
exceptionAlert(error);
+1 -1
View File
@@ -27,7 +27,7 @@ export function DeleteGameButton({ color = "primary" }: IProps): React.ReactElem
deleteGame()
.then(() => {
pushDisableRestore();
setTimeout(() => location.reload(), 1000);
setTimeout(() => location.reload(), 0);
})
.catch((r) => console.error("Could not delete game: %o", r));
}}