fix.修正了在配置文件启用而实际不支持Windows 推送通知的逻辑判断。

This commit is contained in:
sakuraxp
2022-06-05 03:51:22 +08:00
parent db886e777b
commit 542469ce8d
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
<CheckBox
x:Name="usesystemnote" Content="使用Windows系统推送通知支持Win10/Win11" HorizontalAlignment="Left"
Margin="10,0,0,0" VerticalAlignment="Center"
IsChecked="{c:Binding ToastUsingSystem}"
IsChecked="{Binding ToastUsingSystem}"
Visibility="{c:Binding ToastOS, FalseToVisibility=Collapsed}"
Height="20" Width="450"/>

View File

@@ -592,8 +592,8 @@ namespace MeoAsstGui
get { return _toastUsingSystem; }
set
{
SetAndNotify(ref _toastUsingSystem, value);
ViewStatusStorage.Set("Toast.UsingSystem", value.ToString());
SetAndNotify(ref _toastUsingSystem, value && ToastOS);
ViewStatusStorage.Set("Toast.UsingSystem", (value && ToastOS).ToString());
}
}