chore: Update C# EditorConfig for c# 13 & 14 (#15146)

[blame ignore]
This commit is contained in:
Status102
2025-12-23 17:11:48 +08:00
committed by GitHub
parent 32c6429825
commit ca9807ce09
36 changed files with 511 additions and 954 deletions

View File

@@ -39,8 +39,7 @@ public class StartUpSettingsUserControlModel : TaskViewModel
public string AccountName
{
get => _accountName;
set
{
set {
value = value.Trim();
SetAndNotify(ref _accountName, value);
ConfigurationHelper.SetValue(ConfigurationKeys.AccountName, value);
@@ -66,14 +65,12 @@ public class StartUpSettingsUserControlModel : TaskViewModel
{
var clientType = SettingsViewModel.GameSettings.ClientType;
var startGame = SettingsViewModel.GameSettings.StartGame;
var accountName = clientType switch
{
var accountName = clientType switch {
"Official" or "Bilibili" => AccountName,
_ => string.Empty,
};
var task = new AsstStartUpTask()
{
var task = new AsstStartUpTask() {
ClientType = clientType,
StartGame = startGame,
AccountName = accountName,
@@ -90,14 +87,12 @@ public class StartUpSettingsUserControlModel : TaskViewModel
}
var clientType = SettingsViewModel.GameSettings.ClientType;
var accountName = clientType switch
{
var accountName = clientType switch {
"Official" or "Bilibili" => startUp.AccountName,
_ => string.Empty,
};
var task = new AsstStartUpTask()
{
var task = new AsstStartUpTask() {
ClientType = clientType,
StartGame = !string.IsNullOrEmpty(clientType),
AccountName = accountName,