adding input monitoring priviledge detect for mac
This commit is contained in:
parent
09435f43df
commit
b048e5b280
6 changed files with 67 additions and 3 deletions
|
|
@ -582,6 +582,14 @@ pub fn is_installed_daemon(_prompt: bool) -> bool {
|
|||
return true;
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_can_input_monitoring(_prompt: bool) -> bool {
|
||||
#[cfg(target_os = "macos")]
|
||||
return crate::platform::macos::is_can_input_monitoring(_prompt);
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
return true;
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_error() -> String {
|
||||
#[cfg(not(any(feature = "cli")))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue