mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
1 parent
741e5eeb0e
commit
d3b490ac48
46 files changed
+900
-59
No files matched your search
@@ -780,11 +780,7 @@ fn cm_inner_send(id: i32, data: Data) {
|
||||
pub fn can_elevate() -> bool {
|
||||
#[cfg(windows)]
|
||||
{
|
||||
return !crate::platform::is_installed()
|
||||
&& !crate::portable_service::client::PORTABLE_SERVICE_RUNNING
|
||||
.lock()
|
||||
.unwrap()
|
||||
.clone();
|
||||
return !crate::platform::is_installed() && !crate::portable_service::client::running();
|
||||
}
|
||||
#[cfg(not(windows))]
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user