From 54df2ea3263afbe94e389da72b0b662aac1b2f90 Mon Sep 17 00:00:00 2001 From: Bod9001 Date: Thu, 12 Dec 2024 13:33:46 +0000 Subject: [PATCH] asynchronous --- UnitystationLauncher/ViewModels/LauncherViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UnitystationLauncher/ViewModels/LauncherViewModel.cs b/UnitystationLauncher/ViewModels/LauncherViewModel.cs index 416c136..3367c28 100644 --- a/UnitystationLauncher/ViewModels/LauncherViewModel.cs +++ b/UnitystationLauncher/ViewModels/LauncherViewModel.cs @@ -73,7 +73,7 @@ public LauncherViewModel( SelectedPanel = serversPanel; RxApp.MainThreadScheduler.ScheduleAsync((_, _) => ValidateClientVersionAsync()); - RxApp.MainThreadScheduler.ScheduleAsync((_, _) => StartTTSIfInstalled()); + RxApp.MainThreadScheduler.Schedule((_) => StartTTSIfInstalled()); } @@ -108,7 +108,7 @@ private static PanelBase[] GetEnabledPanels( return panelBases.ToArray(); } - private async Task StartTTSIfInstalled() + private void StartTTSIfInstalled() { _ITTSService.StartTTS(); }