diff --git a/Source/Extensions/H.Extensions.Setting/Command.ClearSetting.cs b/Source/Extensions/H.Extensions.Setting/Command.ClearSetting.cs index 197a4f7e..57e30cfb 100644 --- a/Source/Extensions/H.Extensions.Setting/Command.ClearSetting.cs +++ b/Source/Extensions/H.Extensions.Setting/Command.ClearSetting.cs @@ -2,14 +2,26 @@ using H.Providers.Ioc; using H.Providers.Mvvm; +using System.Windows; namespace H.Extensions.Setting { public class ClearSettingDataCommand : MarkupCommandBase { - public override void Execute(object parameter) + public override async void Execute(object parameter) { - AppPaths.Instance.ClearSetting(); + var r = await IocMessage.ShowDialogMessage("清空配置数据无法恢复,确认清空配置?"); + if (r == false) + return; + + r = AppPaths.Instance.ClearSetting(); + if (r == false) + return; + + r = await IocMessage.ShowDialogMessage("重启已生效,是否立即关闭?"); + if (r == false) + return; + Application.Current.Shutdown(); } } } diff --git a/Source/Modules/H.Modules.Guide/GuideBox.xaml b/Source/Modules/H.Modules.Guide/GuideBox.xaml index fd39b0ee..6411aa31 100644 --- a/Source/Modules/H.Modules.Guide/GuideBox.xaml +++ b/Source/Modules/H.Modules.Guide/GuideBox.xaml @@ -122,11 +122,11 @@