mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-11 09:49:11 +08:00
feat optional update check
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
parent
b88f1dc79a
commit
e8d014d80d
@ -1,3 +1,5 @@
|
|||||||
|
use hbb_common::config::Config;
|
||||||
|
|
||||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
use crate::common::get_default_sound_input;
|
use crate::common::get_default_sound_input;
|
||||||
use crate::{
|
use crate::{
|
||||||
@ -1074,7 +1076,9 @@ pub fn main_get_last_remote_id() -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn main_get_software_update_url() -> String {
|
pub fn main_get_software_update_url() -> String {
|
||||||
crate::common::check_software_update();
|
if (get_local_option("enable-check-update".to_string()) != "N") {
|
||||||
|
crate::common::check_software_update();
|
||||||
|
}
|
||||||
crate::common::SOFTWARE_UPDATE_URL.lock().unwrap().clone()
|
crate::common::SOFTWARE_UPDATE_URL.lock().unwrap().clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user