From af402330b2075378d3d80177fe94293ea71081a6 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Wed, 27 Aug 2025 18:16:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=96=87=E4=BB=B6=E5=8D=87=E7=BA=A7=E6=97=B6?= =?UTF-8?q?MAA=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/config.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/core/config.py b/app/core/config.py index fbeaa58..237a189 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -727,6 +727,16 @@ class AppConfig(GlobalConfig): script_dict[MaaConfig.name] = str(uid) await sc.load(maa_config) + if (MaaConfig / "Default/gui.json").exists(): + (Path.cwd() / f"data/{uid}/Default/ConfigFile").mkdir( + parents=True, exist_ok=True + ) + shutil.copy( + MaaConfig / "Default/gui.json", + Path.cwd() + / f"data/{uid}/Default/ConfigFile/gui.json", + ) + for user in (MaaConfig / "UserData").iterdir(): if user.is_dir() and (user / "config.json").exists(): user_config = json.loads(