From 3c331b821413802c34dd86927cdc0156c2ea5532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=97=D0=BB=20=D0=93=D1=80=D0=B8?= =?UTF-8?q?=D0=B3=D0=BE=D1=80=27=D1=94=D0=B2?= Date: Tue, 10 Jun 2025 16:45:21 +0300 Subject: [PATCH] Fix main menu not waiting for savegame import Does not fix the savegame list bugs. Note that savegame index serialization happens a few times for some reason, this is out of scope for this commit though. --- src/js/states/main_menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/states/main_menu.js b/src/js/states/main_menu.js index 51daa990..3da641e1 100644 --- a/src/js/states/main_menu.js +++ b/src/js/states/main_menu.js @@ -146,7 +146,7 @@ export class MainMenuState extends GameState { return; } - this.app.savegameMgr.importSavegame(data); + await this.app.savegameMgr.importSavegame(data); closeLoader(); this.dialogs.showWarning( T.dialogs.importSavegameSuccess.title,