From e4208aa9cfa57586225668d50b76cfe4d95b9fc0 Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Sat, 28 Feb 2026 16:33:54 +0800 Subject: [PATCH] fix(update): revert check (#14423) Signed-off-by: fufesou --- flutter/lib/desktop/pages/desktop_home_page.dart | 8 +++----- src/common.rs | 4 +--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/flutter/lib/desktop/pages/desktop_home_page.dart b/flutter/lib/desktop/pages/desktop_home_page.dart index b9af2dc7b..339ecddb0 100644 --- a/flutter/lib/desktop/pages/desktop_home_page.dart +++ b/flutter/lib/desktop/pages/desktop_home_page.dart @@ -430,12 +430,10 @@ class _DesktopHomePageState extends State } Widget buildHelpCards(String updateUrl) { - final isWindowsInstalled = isWindows && bind.mainIsInstalled(); - if (updateUrl.isNotEmpty && + if (!bind.isCustomClient() && + updateUrl.isNotEmpty && !isCardClosed && - (isWindowsInstalled || - (!bind.isCustomClient() && - bind.mainUriPrefixSync().contains('rustdesk')))) { + bind.mainUriPrefixSync().contains('rustdesk')) { final isToUpdate = (isWindows || isMacOS) && bind.mainIsInstalled(); String btnText = isToUpdate ? 'Update' : 'Download'; GestureTapCallback onPressed = () async { diff --git a/src/common.rs b/src/common.rs index d2c252869..3e23770c6 100644 --- a/src/common.rs +++ b/src/common.rs @@ -940,9 +940,7 @@ pub fn is_modifier(evt: &KeyEvent) -> bool { } pub fn check_software_update() { - let is_windows_installed = cfg!(target_os = "windows") && is_installed(); - let should_check_update = is_windows_installed || !is_custom_client(); - if !should_check_update { + if is_custom_client() { return; } let opt = LocalConfig::get_option(keys::OPTION_ENABLE_CHECK_UPDATE);