Try to weak-link ScreenCaptureKit always (#28585)
Closes #ISSUE Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
parent
66b3e03baa
commit
c2e3134963
5 changed files with 8 additions and 12 deletions
|
@ -2,7 +2,7 @@ use super::{
|
|||
BoolExt,
|
||||
attributed_string::{NSAttributedString, NSMutableAttributedString},
|
||||
events::key_to_native,
|
||||
renderer, screen_capture,
|
||||
is_macos_version_at_least, renderer, screen_capture,
|
||||
};
|
||||
use crate::{
|
||||
Action, AnyWindowHandle, BackgroundExecutor, ClipboardEntry, ClipboardItem, ClipboardString,
|
||||
|
@ -22,8 +22,8 @@ use cocoa::{
|
|||
},
|
||||
base::{BOOL, NO, YES, id, nil, selector},
|
||||
foundation::{
|
||||
NSArray, NSAutoreleasePool, NSBundle, NSData, NSInteger, NSProcessInfo, NSRange, NSString,
|
||||
NSUInteger, NSURL,
|
||||
NSArray, NSAutoreleasePool, NSBundle, NSData, NSInteger, NSOperatingSystemVersion,
|
||||
NSProcessInfo, NSRange, NSString, NSUInteger, NSURL,
|
||||
},
|
||||
};
|
||||
use core_foundation::{
|
||||
|
@ -553,7 +553,8 @@ impl Platform for MacPlatform {
|
|||
}
|
||||
|
||||
fn is_screen_capture_supported(&self) -> bool {
|
||||
true
|
||||
let min_version = NSOperatingSystemVersion::new(12, 3, 0);
|
||||
is_macos_version_at_least(min_version)
|
||||
}
|
||||
|
||||
fn screen_capture_sources(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue