mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-07 12:20:03 +03:00
fix(update): revert check (#14423)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -430,12 +430,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget buildHelpCards(String updateUrl) {
|
Widget buildHelpCards(String updateUrl) {
|
||||||
final isWindowsInstalled = isWindows && bind.mainIsInstalled();
|
if (!bind.isCustomClient() &&
|
||||||
if (updateUrl.isNotEmpty &&
|
updateUrl.isNotEmpty &&
|
||||||
!isCardClosed &&
|
!isCardClosed &&
|
||||||
(isWindowsInstalled ||
|
bind.mainUriPrefixSync().contains('rustdesk')) {
|
||||||
(!bind.isCustomClient() &&
|
|
||||||
bind.mainUriPrefixSync().contains('rustdesk')))) {
|
|
||||||
final isToUpdate = (isWindows || isMacOS) && bind.mainIsInstalled();
|
final isToUpdate = (isWindows || isMacOS) && bind.mainIsInstalled();
|
||||||
String btnText = isToUpdate ? 'Update' : 'Download';
|
String btnText = isToUpdate ? 'Update' : 'Download';
|
||||||
GestureTapCallback onPressed = () async {
|
GestureTapCallback onPressed = () async {
|
||||||
|
|||||||
@@ -940,9 +940,7 @@ pub fn is_modifier(evt: &KeyEvent) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn check_software_update() {
|
pub fn check_software_update() {
|
||||||
let is_windows_installed = cfg!(target_os = "windows") && is_installed();
|
if is_custom_client() {
|
||||||
let should_check_update = is_windows_installed || !is_custom_client();
|
|
||||||
if !should_check_update {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let opt = LocalConfig::get_option(keys::OPTION_ENABLE_CHECK_UPDATE);
|
let opt = LocalConfig::get_option(keys::OPTION_ENABLE_CHECK_UPDATE);
|
||||||
|
|||||||
Reference in New Issue
Block a user