mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-04 09:41:29 +03:00
win,linux remove desktop wallpaper
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -65,14 +65,14 @@ pub fn make_tray() -> hbb_common::ResultType<()> {
|
||||
)
|
||||
}
|
||||
};
|
||||
let tray_icon = Some(
|
||||
let _tray_icon = Some(
|
||||
TrayIconBuilder::new()
|
||||
.with_menu(Box::new(tray_menu))
|
||||
.with_tooltip(tooltip(0))
|
||||
.with_icon(icon)
|
||||
.build()?,
|
||||
);
|
||||
let tray_icon = Arc::new(Mutex::new(tray_icon));
|
||||
let _tray_icon = Arc::new(Mutex::new(_tray_icon));
|
||||
|
||||
let menu_channel = MenuEvent::receiver();
|
||||
let tray_channel = TrayEvent::receiver();
|
||||
@@ -149,7 +149,7 @@ pub fn make_tray() -> hbb_common::ResultType<()> {
|
||||
if let Ok(data) = ipc_receiver.try_recv() {
|
||||
match data {
|
||||
Data::ControlledSessionCount(count) => {
|
||||
tray_icon
|
||||
_tray_icon
|
||||
.lock()
|
||||
.unwrap()
|
||||
.as_mut()
|
||||
|
||||
Reference in New Issue
Block a user