This commit is contained in:
rustdesk 2022-12-29 00:16:41 +08:00
parent 8070600e03
commit cfaeb6ac0a
5 changed files with 5 additions and 5 deletions

View File

@ -420,7 +420,7 @@ impl Client {
key: &str, key: &str,
conn: &mut Stream, conn: &mut Stream,
direct: bool, direct: bool,
mut interface: impl Interface, interface: impl Interface,
) -> ResultType<()> { ) -> ResultType<()> {
let rs_pk = get_rs_pk(if key.is_empty() { let rs_pk = get_rs_pk(if key.is_empty() {
hbb_common::config::RS_PUB_KEY hbb_common::config::RS_PUB_KEY

View File

@ -19,7 +19,8 @@ use crate::flutter::{self, SESSIONS};
use crate::ui_interface::{self, *}; use crate::ui_interface::{self, *};
use crate::{ use crate::{
client::file_trait::FileManager, client::file_trait::FileManager,
flutter::{make_fd_to_json, session_add, session_start_}, common::make_fd_to_json,
flutter::{session_add, session_start_},
}; };
fn initialize(app_dir: &str) { fn initialize(app_dir: &str) {
*config::APP_DIR.write().unwrap() = app_dir.to_owned(); *config::APP_DIR.write().unwrap() = app_dir.to_owned();

View File

@ -24,7 +24,7 @@ use hbb_common::{
time::{interval, Duration}, time::{interval, Duration},
}, },
udp::FramedSocket, udp::FramedSocket,
AddrMangle, IntoTargetAddr, ResultType, TargetAddr, AddrMangle, ResultType, TargetAddr,
}; };
use crate::server::{check_zombie, new as new_server, ServerPtr}; use crate::server::{check_zombie, new as new_server, ServerPtr};

View File

@ -206,7 +206,7 @@ fn is_service_stoped() -> bool {
pub fn make_tray() { pub fn make_tray() {
use tray_item::TrayItem; use tray_item::TrayItem;
let mode = dark_light::detect(); let mode = dark_light::detect();
let mut icon_path = ""; let icon_path;
match mode { match mode {
dark_light::Mode::Dark => { dark_light::Mode::Dark => {
icon_path = "mac-tray-light.png"; icon_path = "mac-tray-light.png";

View File

@ -11,7 +11,6 @@ use hbb_common::{
allow_err, allow_err,
config::{self, PeerConfig}, config::{self, PeerConfig},
log, log,
rendezvous_proto::*,
}; };
use crate::common::get_app_name; use crate::common::get_app_name;