mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-07 12:20:03 +03:00
Compare commits
2 Commits
bb3501a4f9
...
1833cb0655
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1833cb0655 | ||
|
|
e4208aa9cf |
@@ -3938,9 +3938,7 @@ void earlyAssert() {
|
||||
|
||||
void checkUpdate() {
|
||||
if (!isWeb) {
|
||||
final isWindowsInstalled = isWindows && bind.mainIsInstalled();
|
||||
final shouldCheckUpdate = isWindowsInstalled || !bind.isCustomClient();
|
||||
if (shouldCheckUpdate) {
|
||||
if (!bind.isCustomClient()) {
|
||||
platformFFI.registerEventHandler(
|
||||
kCheckSoftwareUpdateFinish, kCheckSoftwareUpdateFinish,
|
||||
(Map<String, dynamic> evt) async {
|
||||
|
||||
@@ -430,12 +430,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
||||
}
|
||||
|
||||
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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user