[MWB]Improve UX for Uninstall service when it's inaccessible (#26525)

This commit is contained in:
Andrey Nekrasov
2023-05-31 18:14:26 +02:00
committed by GitHub
parent 88656a9fe0
commit e378f0cebc
2 changed files with 2 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
{
Settings.Properties.UseService = value;
OnPropertyChanged(nameof(UseService));
OnPropertyChanged(nameof(CanUninstallService));
// Must block here until the process exits
Task.Run(async () =>

View File

@@ -203,6 +203,7 @@
IsTabStop="True"
Severity="Warning" />
<labs:SettingsCard
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.CanUninstallService}"
x:Uid="MouseWithoutBorders_UninstallService"
ActionIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
Glyph=&#xE8A7;}"