fix(shortcuts): check support before registering all displays view
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user