Skip to content

Commit 073e1c1

Browse files
authored
Disable update
1 parent 4c70626 commit 073e1c1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

flutter/lib/desktop/pages/desktop_home_page.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -424,18 +424,18 @@ class _DesktopHomePageState extends State<DesktopHomePage>
424424
}
425425

426426
Widget buildHelpCards(String updateUrl) {
427-
if (!bind.isCustomClient() &&
428-
updateUrl.isNotEmpty &&
429-
!isCardClosed &&
430-
bind.mainUriPrefixSync().contains('rustdesk')) {
431-
return buildInstallCard(
432-
"Status",
433-
"${translate("new-version-of-{${bind.mainGetAppNameSync()}}-tip")} (${bind.mainGetNewVersion()}).",
434-
"Click to download", () async {
435-
final Uri url = Uri.parse('https://rustdesk.com/download');
436-
await launchUrl(url);
437-
}, closeButton: true);
438-
}
427+
//if (!bind.isCustomClient() &&
428+
// updateUrl.isNotEmpty &&
429+
// !isCardClosed &&
430+
// bind.mainUriPrefixSync().contains('rustdesk')) {
431+
// return buildInstallCard(
432+
// "Status",
433+
// "${translate("new-version-of-{${bind.mainGetAppNameSync()}}-tip")} (${bind.mainGetNewVersion()}).",
434+
// "Click to download", () async {
435+
// final Uri url = Uri.parse('https://rustdesk.com/download');
436+
// await launchUrl(url);
437+
// }, closeButton: true);
438+
//}
439439
if (systemError.isNotEmpty) {
440440
return buildInstallCard("", systemError, "", () {});
441441
}

0 commit comments

Comments
 (0)