From 9d1063f3f2744e2166a537b9d5659c5fa89aa55c Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Wed, 4 Nov 2026 09:30:33 +0800 Subject: [PATCH] Fix https://github.com/2dust/v2rayN/commit/749a7312d7899890b2dfedf635af4b03ddb1aa44 --- v2rayN/v2rayN.Desktop/ViewModels/ThemeSettingViewModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/ViewModels/ThemeSettingViewModel.cs b/v2rayN/v2rayN.Desktop/ViewModels/ThemeSettingViewModel.cs index 991b365c..4f542ca4 100644 --- a/v2rayN/v2rayN.Desktop/ViewModels/ThemeSettingViewModel.cs +++ b/v2rayN/v2rayN.Desktop/ViewModels/ThemeSettingViewModel.cs @@ -38,7 +38,7 @@ public partial class ThemeSettingViewModel : MyReactiveObject CurrentFontSize = _config.UiItem.CurrentFontSize; CurrentLanguage = _config.UiItem.CurrentLanguage; - this.WhenAnyValueUnsafe(x => x.CurrentTheme) + this.WhenAnyValue(x => x.CurrentTheme) .Where(y => y.IsNotEmpty()) .SubscribeAsync(async _ => { @@ -50,7 +50,7 @@ public partial class ThemeSettingViewModel : MyReactiveObject } }); - this.WhenAnyValueUnsafe(x => x.CurrentFontSize) + this.WhenAnyValue(x => x.CurrentFontSize) .Where(y => y > 0) .SubscribeAsync(async _ => { @@ -62,7 +62,7 @@ public partial class ThemeSettingViewModel : MyReactiveObject } }); - this.WhenAnyValueUnsafe(x => x.CurrentLanguage) + this.WhenAnyValue(x => x.CurrentLanguage) .Where(y => !y.IsNullOrEmpty()) .SubscribeAsync(async _ => {