mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
[MWB]Improve UX for Uninstall service when it's inaccessible (#26525)
This commit is contained in:
@@ -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 () =>
|
||||
|
||||
@@ -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=}"
|
||||
|
||||
Reference in New Issue
Block a user