mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
run_uac with wchar, refactor elevate_or_run_as_system
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
1 parent
627ccd4c01
commit
a2f1ab80da
3 files changed
+49
-39
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ pub fn start_tray(options: Arc<Mutex<HashMap<String, String>>>) {
|
||||
.build()
|
||||
.unwrap();
|
||||
let old_state = Arc::new(Mutex::new(0));
|
||||
let _ = crate::ui_interface::SENDER.lock().unwrap();
|
||||
let _sender = crate::ui_interface::SENDER.lock().unwrap();
|
||||
event_loop.run(move |event, _, control_flow| {
|
||||
if options.lock().unwrap().get("ipc-closed").is_some() {
|
||||
*control_flow = ControlFlow::Exit;
|
||||
|
||||
Reference in new issue
Block a user