mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 00:33:12 +00:00
feat: windows, custom client, update (#13687)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
1 parent
d49ae493b2
commit
4abdb2e08b
15 files changed
+957
-124
No files matched your search
+4
-2
@@ -39,7 +39,7 @@ use hbb_common::{
|
||||
|
||||
use crate::{
|
||||
hbbs_http::{create_http_client_async, get_url_for_tls},
|
||||
ui_interface::{get_option, set_option},
|
||||
ui_interface::{get_option, is_installed, set_option},
|
||||
};
|
||||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
@@ -940,7 +940,9 @@ pub fn is_modifier(evt: &KeyEvent) -> bool {
|
||||
}
|
||||
|
||||
pub fn check_software_update() {
|
||||
if is_custom_client() {
|
||||
let is_windows_installed = cfg!(target_os = "windows") && is_installed();
|
||||
let should_check_update = is_windows_installed || !is_custom_client();
|
||||
if !should_check_update {
|
||||
return;
|
||||
}
|
||||
let opt = LocalConfig::get_option(keys::OPTION_ENABLE_CHECK_UPDATE);
|
||||
|
||||
Reference in new issue
Block a user