[Settings][QL]Add code comment to clarify what PTRun plugin list error badge means (#32577)

This commit is contained in:
Jay 2024-04-23 15:14:25 +02:00 committed by GitHub
parent 5d5e56ef55
commit bd7614e531
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -196,6 +196,9 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
get => !Disabled && !IsGlobal && string.IsNullOrWhiteSpace(ActionKeyword);
}
// The Badge is shown in case of ANY error event, but NEVER when the plugin is disabled.
// Logic = !disabled && (errorA or errorB or errorC...)
// Current count of possible error events: 1 (NotAccessible)
public bool ShowBadgeOnPluginSettingError
{
get => !Disabled && ShowNotAccessibleWarning;