Skip to content

Commit

Permalink
[fix] 修复设置默认位置时可能闪退的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zxbmmmmmmmmm committed Mar 16, 2024
1 parent 14fe7d9 commit 51440df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "取消";
}
Expand Down

0 comments on commit 51440df

Please sign in to comment.