From a11f2e505b2b838ff42edcde6f3472d8a2a5a02c Mon Sep 17 00:00:00 2001 From: ONLOX <3316820553@qq.com> Date: Sun, 31 Mar 2024 14:24:52 +0800 Subject: [PATCH] style: fix format --- installer/ViewModel/LaunchViewModel.cs | 28 +++++++++++++++++--------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/installer/ViewModel/LaunchViewModel.cs b/installer/ViewModel/LaunchViewModel.cs index 56c4bde1..57316c7e 100644 --- a/installer/ViewModel/LaunchViewModel.cs +++ b/installer/ViewModel/LaunchViewModel.cs @@ -54,7 +54,7 @@ public LaunchViewModel(Downloader downloader) break; } - + SaveEnabled = true; StartEnabled = true; @@ -331,7 +331,8 @@ private async Task StartBtnClicked() private void Save() { - Task.Run(() => { + Task.Run(() => + { try { if (IP == null) @@ -344,7 +345,8 @@ private void Save() DebugAlert = "IP: " + e.Message; } }); - Task.Run(() => { + Task.Run(() => + { try { if (Port == null) @@ -357,7 +359,8 @@ private void Save() DebugAlert = "Port: " + e.Message; } }); - Task.Run(() => { + Task.Run(() => + { try { if (TeamID == null) @@ -370,7 +373,8 @@ private void Save() DebugAlert = "Team ID: " + e.Message; } }); - Task.Run(() => { + Task.Run(() => + { try { if (PlayerID == null) @@ -383,7 +387,8 @@ private void Save() DebugAlert = "Player ID: " + e.Message; } }); - Task.Run(() => { + Task.Run(() => + { try { if (SweeperType == null) @@ -396,7 +401,8 @@ private void Save() DebugAlert = "Sweeper Type: " + e.Message; } }); - Task.Run(() => { + Task.Run(() => + { try { if (PlaybackFile == null) @@ -409,7 +415,8 @@ private void Save() DebugAlert = "Playback File: " + e.Message; } }); - Task.Run(() => { + Task.Run(() => + { try { Downloader.Data.Config.Commands.PlaybackSpeed = Convert.ToDouble(PlaybackSpeed); @@ -420,7 +427,8 @@ private void Save() DebugAlert = "Playback Speed: " + e.Message; } }); - Task.Run(() => { + Task.Run(() => + { try { if (CppSelect) @@ -454,7 +462,7 @@ private void Start() + PlaybackSpeed; } - + private string? debugAlert; public string? DebugAlert {