mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix config::is_incoming_only
This commit is contained in:
@@ -3,10 +3,10 @@ use crate::client::translate;
|
||||
#[cfg(not(debug_assertions))]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
use crate::platform::breakdown_callback;
|
||||
use hbb_common::{config, log};
|
||||
#[cfg(not(debug_assertions))]
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
use hbb_common::platform::register_breakdown_handler;
|
||||
use hbb_common::{config, log};
|
||||
#[cfg(windows)]
|
||||
use tauri_winrt_notification::{Duration, Sound, Toast};
|
||||
|
||||
@@ -63,11 +63,7 @@ pub fn core_main() -> Option<Vec<String>> {
|
||||
]
|
||||
.contains(&arg.as_str())
|
||||
{
|
||||
if config::is_incoming_only() {
|
||||
return None;
|
||||
} else {
|
||||
_is_flutter_invoke_new_connection = true;
|
||||
}
|
||||
_is_flutter_invoke_new_connection = true;
|
||||
}
|
||||
if arg == "--elevate" {
|
||||
_is_elevate = true;
|
||||
@@ -111,7 +107,7 @@ pub fn core_main() -> Option<Vec<String>> {
|
||||
return core_main_invoke_new_connection(std::env::args());
|
||||
}
|
||||
let click_setup = cfg!(windows) && args.is_empty() && crate::common::is_setup(&arg_exe);
|
||||
if click_setup && !config::is_disable_installation(){
|
||||
if click_setup && !config::is_disable_installation() {
|
||||
args.push("--install".to_owned());
|
||||
flutter_args.push("--install".to_string());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user