fix(macOS): nil displayName on macOS 26 beta (#3991)
This commit is contained in:
parent
fb51c2c649
commit
926cafa6a9
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
+ (NSString *)getDisplayName:(CGDirectDisplayID)displayID {
|
||||
for (NSScreen *screen in [NSScreen screens]) {
|
||||
if (screen.deviceDescription[@"NSScreenNumber"] == [NSNumber numberWithUnsignedInt:displayID]) {
|
||||
if ([screen.deviceDescription[@"NSScreenNumber"] isEqualToNumber:[NSNumber numberWithUnsignedInt:displayID]]) {
|
||||
return screen.localizedName;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue