From 51440df55574fe5ce67b4359a512c1c1df203579 Mon Sep 17 00:00:00 2001 From: Betta_Fish Date: Sat, 16 Mar 2024 23:11:34 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=BD=8D=E7=BD=AE=E6=97=B6=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E9=97=AA=E9=80=80=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FluentWeather.Uwp/Controls/Dialogs/SetLocationDialog.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FluentWeather.Uwp/Controls/Dialogs/SetLocationDialog.xaml.cs b/FluentWeather.Uwp/Controls/Dialogs/SetLocationDialog.xaml.cs index 409bbe9..3dac8b4 100644 --- a/FluentWeather.Uwp/Controls/Dialogs/SetLocationDialog.xaml.cs +++ b/FluentWeather.Uwp/Controls/Dialogs/SetLocationDialog.xaml.cs @@ -33,7 +33,7 @@ public sealed partial class SetLocationDialog : ContentDialog public SetLocationDialog() { this.InitializeComponent(); - if(Common.Settings.DefaultGeolocation.Name is not null) + if(Common.Settings.DefaultGeolocation?.Name is not null) { SecondaryButtonText = "取消"; }