From 96b5eb3df923582124a467f2832b6a7521ac504c Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Thu, 26 Jun 2025 12:24:52 +0800 Subject: [PATCH] Skip this plugin if all hotkeys are invisible --- Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs b/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs index a0cc02662..f232abe87 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs @@ -46,6 +46,11 @@ public partial class SettingsPaneHotkey var pluginPair = info.Key; var hotkeyInfo = info.Value; var metadata = pluginPair.Metadata; + + // Skip this plugin if all hotkeys are invisible + var allHotkeyInvisible = hotkeyInfo.All(h => !h.Visible); + if (allHotkeyInvisible) continue; + var excard = new ExCard() { Title = metadata.Name,