Skip to content

Commit

Permalink
style: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
ONLOX committed Mar 31, 2024
1 parent a18d4d4 commit a11f2e5
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions installer/ViewModel/LaunchViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public LaunchViewModel(Downloader downloader)
break;
}


SaveEnabled = true;
StartEnabled = true;

Expand Down Expand Up @@ -331,7 +331,8 @@ private async Task StartBtnClicked()

private void Save()
{
Task.Run(() => {
Task.Run(() =>
{
try
{
if (IP == null)
Expand All @@ -344,7 +345,8 @@ private void Save()
DebugAlert = "IP: " + e.Message;
}
});
Task.Run(() => {
Task.Run(() =>
{
try
{
if (Port == null)
Expand All @@ -357,7 +359,8 @@ private void Save()
DebugAlert = "Port: " + e.Message;
}
});
Task.Run(() => {
Task.Run(() =>
{
try
{
if (TeamID == null)
Expand All @@ -370,7 +373,8 @@ private void Save()
DebugAlert = "Team ID: " + e.Message;
}
});
Task.Run(() => {
Task.Run(() =>
{
try
{
if (PlayerID == null)
Expand All @@ -383,7 +387,8 @@ private void Save()
DebugAlert = "Player ID: " + e.Message;
}
});
Task.Run(() => {
Task.Run(() =>
{
try
{
if (SweeperType == null)
Expand All @@ -396,7 +401,8 @@ private void Save()
DebugAlert = "Sweeper Type: " + e.Message;
}
});
Task.Run(() => {
Task.Run(() =>
{
try
{
if (PlaybackFile == null)
Expand All @@ -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);
Expand All @@ -420,7 +427,8 @@ private void Save()
DebugAlert = "Playback Speed: " + e.Message;
}
});
Task.Run(() => {
Task.Run(() =>
{
try
{
if (CppSelect)
Expand Down Expand Up @@ -454,7 +462,7 @@ private void Start()
+ PlaybackSpeed;
}


private string? debugAlert;
public string? DebugAlert
{
Expand Down

0 comments on commit a11f2e5

Please sign in to comment.