From bd7614e5313d3fc81af26f7dc1ed2afabd42553d Mon Sep 17 00:00:00 2001 From: Jay <65828559+Jay-o-Way@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:14:25 +0200 Subject: [PATCH] [Settings][QL]Add code comment to clarify what PTRun plugin list error badge means (#32577) --- .../Settings.UI/ViewModels/PowerLauncherPluginViewModel.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/settings-ui/Settings.UI/ViewModels/PowerLauncherPluginViewModel.cs b/src/settings-ui/Settings.UI/ViewModels/PowerLauncherPluginViewModel.cs index 9d3fbcc39f..c337aa1e5c 100644 --- a/src/settings-ui/Settings.UI/ViewModels/PowerLauncherPluginViewModel.cs +++ b/src/settings-ui/Settings.UI/ViewModels/PowerLauncherPluginViewModel.cs @@ -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;