fix: 开始唤醒-手动切换账号运行时无法切换账号

This commit is contained in:
status102
2026-07-09 19:46:39 +08:00
parent dd643b809d
commit 4dc8837b29

View File

@@ -22,7 +22,6 @@ using MaaWpfGui.Main;
using MaaWpfGui.Models;
using MaaWpfGui.Models.AsstTasks;
using MaaWpfGui.ViewModels.UI;
using Newtonsoft.Json.Linq;
using static MaaWpfGui.Main.AsstProxy;
namespace MaaWpfGui.ViewModels.UserControl.TaskQueue;
@@ -61,7 +60,7 @@ public class StartUpSettingsUserControlModel : TaskSettingsViewModel, StartUpSet
Instances.TaskQueueViewModel.AddLog("Current task is not StartUpTask", UiLogColor.Error);
return;
}
var task = new StartUpTask() { AccountName = startUp.AccountName };
var task = new StartUpTask() { AccountSwitchEnabled = true, AccountName = startUp.AccountName };
await Instances.TaskQueueViewModel.LinkStartWithTasks([task]);
}