feat: 新增是否启动客户端勾选框

This commit is contained in:
uye
2025-07-19 10:48:48 +08:00
parent 4974ab6535
commit 036be03459
9 changed files with 39 additions and 13 deletions

View File

@@ -65,6 +65,7 @@ public class StartUpSettingsUserControlModel : TaskViewModel
public override (AsstTaskType Type, JObject Params) Serialize()
{
var clientType = SettingsViewModel.GameSettings.ClientType;
var startGame = SettingsViewModel.GameSettings.StartGame;
var accountName = clientType switch
{
"Official" or "Bilibili" => AccountName,
@@ -74,7 +75,7 @@ public class StartUpSettingsUserControlModel : TaskViewModel
var task = new AsstStartUpTask()
{
ClientType = clientType,
StartGame = !string.IsNullOrEmpty(clientType),
StartGame = startGame,
AccountName = accountName,
};