From b40fa35622a0a9670d3e53a35da1f3e488ace356 Mon Sep 17 00:00:00 2001 From: heziziziscool Date: Wed, 22 Jan 2025 17:22:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AF=B9=E4=BA=8EMAAv5.12.1=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=90=8E=E4=B8=A4=E4=B8=AA=E5=AD=97=E6=AE=B5`Start.Ru?= =?UTF-8?q?nDirectly`=E4=B8=8E`Start.OpenEmulatorAfterLaunch`=E7=9A=84?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/MAA.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/app/models/MAA.py b/app/models/MAA.py index e268645..6894414 100644 --- a/app/models/MAA.py +++ b/app/models/MAA.py @@ -33,7 +33,6 @@ import subprocess import shutil import time from pathlib import Path - from app import AppConfig @@ -658,13 +657,23 @@ class MaaManager(QtCore.QThread): data["Current"] = "Default" # 切换配置 for i in range(1, 9): data["Global"][f"Timer.Timer{i}"] = "False" # 时间设置 + # 完成后退出MAA和模拟器 data["Configurations"]["Default"][ "MainFunction.PostActions" - ] = "12" # 完成后退出MAA和模拟器 - data["Global"]["Start.RunDirectly"] = "True" # 启动MAA后直接运行 + ] = "12" + # v5.1.11版本对于以下字段处理 + # 启动MAA后直接运行 + data["Global"]["Start.RunDirectly"] = "True" + # 启动MAA后自动开启模拟器 data["Global"][ "Start.OpenEmulatorAfterLaunch" - ] = "True" # 启动MAA后自动开启模拟器 + ] = "True" + # v5.1.12版本对以下字段处理 + # 启动MAA后直接运行 + data["Configurations"]["Default"]["Start.OpenEmulatorAfterLaunch"] = "True" + # 启动MAA后自动开启模拟器 + data["Configurations"]["Default"]["Start.RunDirectly"] = "True" + if self.if_silence: data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化 From 449d8a032edc76cfcce34254d3cc7bc94840f37a Mon Sep 17 00:00:00 2001 From: heziziziscool Date: Wed, 22 Jan 2025 17:24:26 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=AF=B9=E4=BA=8EMAAv5.12.1=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=90=8E=E4=B8=A4=E4=B8=AA=E5=AD=97=E6=AE=B5`Start.Ru?= =?UTF-8?q?nDirectly`=E4=B8=8E`Start.OpenEmulatorAfterLaunch`=E7=9A=84?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/MAA.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/MAA.py b/app/models/MAA.py index 6894414..4cdd00a 100644 --- a/app/models/MAA.py +++ b/app/models/MAA.py @@ -675,6 +675,7 @@ class MaaManager(QtCore.QThread): data["Configurations"]["Default"]["Start.RunDirectly"] = "True" + if self.if_silence: data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化 data["Global"]["GUI.UseTray"] = "True" # 显示托盘图标 From f3e1b4580a673650fd3f04d7845224d853b26e36 Mon Sep 17 00:00:00 2001 From: heziziziscool Date: Wed, 22 Jan 2025 17:24:52 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=AF=B9=E4=BA=8EMAAv5.12.1=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=90=8E=E4=B8=A4=E4=B8=AA=E5=AD=97=E6=AE=B5`Start.Ru?= =?UTF-8?q?nDirectly`=E4=B8=8E`Start.OpenEmulatorAfterLaunch`=E7=9A=84?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/MAA.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/MAA.py b/app/models/MAA.py index 4cdd00a..6894414 100644 --- a/app/models/MAA.py +++ b/app/models/MAA.py @@ -675,7 +675,6 @@ class MaaManager(QtCore.QThread): data["Configurations"]["Default"]["Start.RunDirectly"] = "True" - if self.if_silence: data["Global"]["Start.MinimizeDirectly"] = "True" # 启动MAA后直接最小化 data["Global"]["GUI.UseTray"] = "True" # 显示托盘图标