feat optional update check
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use hbb_common::config::Config;
|
||||
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
use crate::common::get_default_sound_input;
|
||||
use crate::{
|
||||
@@ -1074,7 +1076,9 @@ pub fn main_get_last_remote_id() -> 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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user