elevation request
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
741e5eeb0e
commit
d3b490ac48
46 changed files with 900 additions and 59 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue