fix(capture/macos): fix implicit conversion of NSArray (#3502)
This commit is contained in:
parent
d50611c79b
commit
151ff8f2b9
1 changed files with 1 additions and 2 deletions
|
|
@ -32,8 +32,7 @@
|
|||
}
|
||||
|
||||
+ (NSString *)getDisplayName:(CGDirectDisplayID)displayID {
|
||||
NSScreen *screens = [NSScreen screens];
|
||||
for (NSScreen *screen in screens) {
|
||||
for (NSScreen *screen in [NSScreen screens]) {
|
||||
if (screen.deviceDescription[@"NSScreenNumber"] == [NSNumber numberWithUnsignedInt:displayID]) {
|
||||
return screen.localizedName;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue