mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-23 08:58:52 +00:00
update tray status
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
4ab179e4b7
commit
a06753bbdd
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +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();
|
||||
event_loop.run(move |event, _, control_flow| {
|
||||
if options.lock().unwrap().get("ipc-closed").is_some() {
|
||||
*control_flow = ControlFlow::Exit;
|
||||
|
|
@ -46,7 +47,7 @@ pub fn start_tray(options: Arc<Mutex<HashMap<String, String>>>) {
|
|||
let mut m = MenuBuilder::new();
|
||||
if stopped == 2 {
|
||||
m = m.item(
|
||||
&crate::client::translate("Start service".to_owned()),
|
||||
&crate::client::translate("Start Service".to_owned()),
|
||||
Events::StartService,
|
||||
);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue