mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[Settings][PTRun]Grey out score adjustment when plugin is not global (#19301)
This commit is contained in:
@@ -59,6 +59,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||
NotifyPropertyChanged(nameof(ShowNotAllowedKeywordWarning));
|
||||
NotifyPropertyChanged(nameof(Enabled));
|
||||
NotifyPropertyChanged(nameof(DisabledOpacity));
|
||||
NotifyPropertyChanged(nameof(IsGlobalAndEnabled));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,6 +68,14 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||
|
||||
public double DisabledOpacity => Disabled ? 0.5 : 1;
|
||||
|
||||
public bool IsGlobalAndEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
return IsGlobal && Enabled;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsGlobal
|
||||
{
|
||||
get
|
||||
@@ -81,6 +90,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||
settings.IsGlobal = value;
|
||||
NotifyPropertyChanged();
|
||||
NotifyPropertyChanged(nameof(ShowNotAccessibleWarning));
|
||||
NotifyPropertyChanged(nameof(IsGlobalAndEnabled));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user