fix(models): 修复设置MAA时异常调用B服任务设置

This commit is contained in:
DLmaster
2025-02-08 16:58:11 +08:00
parent 0c123e9389
commit de262ee6bd

View File

@@ -650,9 +650,12 @@ class MaaManager(QObject):
with self.maa_set_path.open(mode="r", encoding="utf-8") as f: with self.maa_set_path.open(mode="r", encoding="utf-8") as f:
data = json.load(f) data = json.load(f)
if (self.data[index][15] == "simple" and self.data[index][2] == "Bilibili") or ( if "设置MAA" not in mode and (
self.data[index][15] == "beta" (self.data[index][15] == "simple" and self.data[index][2] == "Bilibili")
and data["Configurations"]["Default"]["Start.ClientType"] == "Bilibili" or (
self.data[index][15] == "beta"
and data["Configurations"]["Default"]["Start.ClientType"] == "Bilibili"
)
): ):
self.agree_bilibili(True) self.agree_bilibili(True)
else: else: