fix(shortcuts): check support before registering all displays view

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2026-10-13 02:19:44 -07:00
parent a7fa99a349
commit 8fa28e0201
+1 -1
View File
@@ -397,7 +397,7 @@ void registerSessionShortcutActions(
!allowDisplaySwitchInPrivacyMode(pi, privacyMode)) {
return;
}
if (pi.displays.length <= 1) return;
if (!pi.isSupportMultiDisplay || pi.displays.length <= 1) return;
if (pi.currentDisplay == kAllDisplayValue) return;
openDisplay(kAllDisplayValue, pi);
});