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,
conn: &mut Stream,
direct: bool,
mut interface: impl Interface,
interface: impl Interface,
) -> ResultType<()> {
let rs_pk = get_rs_pk(if key.is_empty() {
hbb_common::config::RS_PUB_KEY

View File

@ -19,7 +19,8 @@ use crate::flutter::{self, SESSIONS};
use crate::ui_interface::{self, *};
use crate::{
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) {
*config::APP_DIR.write().unwrap() = app_dir.to_owned();

View File

@ -24,7 +24,7 @@ use hbb_common::{
time::{interval, Duration},
},
udp::FramedSocket,
AddrMangle, IntoTargetAddr, ResultType, TargetAddr,
AddrMangle, ResultType, TargetAddr,
};
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() {
use tray_item::TrayItem;
let mode = dark_light::detect();
let mut icon_path = "";
let icon_path;
match mode {
dark_light::Mode::Dark => {
icon_path = "mac-tray-light.png";

View File

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