Skip this plugin if all hotkeys are invisible

This commit is contained in:
Jack251970 2025-06-26 12:24:52 +08:00
parent 3fe1e5023a
commit 96b5eb3df9

View file

@ -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,