mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02: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;
|
Settings.Properties.UseService = value;
|
||||||
OnPropertyChanged(nameof(UseService));
|
OnPropertyChanged(nameof(UseService));
|
||||||
|
OnPropertyChanged(nameof(CanUninstallService));
|
||||||
|
|
||||||
// Must block here until the process exits
|
// Must block here until the process exits
|
||||||
Task.Run(async () =>
|
Task.Run(async () =>
|
||||||
|
|||||||
@@ -203,6 +203,7 @@
|
|||||||
IsTabStop="True"
|
IsTabStop="True"
|
||||||
Severity="Warning" />
|
Severity="Warning" />
|
||||||
<labs:SettingsCard
|
<labs:SettingsCard
|
||||||
|
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.CanUninstallService}"
|
||||||
x:Uid="MouseWithoutBorders_UninstallService"
|
x:Uid="MouseWithoutBorders_UninstallService"
|
||||||
ActionIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
ActionIcon="{ui:FontIcon FontFamily={StaticResource SymbolThemeFontFamily},
|
||||||
Glyph=}"
|
Glyph=}"
|
||||||
|
|||||||
Reference in New Issue
Block a user