Skip to content

Commit

Permalink
DisableUpd
Browse files Browse the repository at this point in the history
  • Loading branch information
Крутьев Александр committed Jan 14, 2025
1 parent 268bf9f commit 8075550
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions flutter/lib/desktop/pages/desktop_home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -421,18 +421,18 @@ class _DesktopHomePageState extends State<DesktopHomePage>
}

Future<Widget> buildHelpCards() async {
if (!bind.isCustomClient() &&
updateUrl.isNotEmpty &&
!isCardClosed &&
bind.mainUriPrefixSync().contains('rustdesk')) {
return buildInstallCard(
"Status",
"There is a newer version of ${bind.mainGetAppNameSync()} ${bind.mainGetNewVersion()} available.",
"Click to download", () async {
final Uri url = Uri.parse('https://rustdesk.com/download');
await launchUrl(url);
}, closeButton: true);
}
//if (!bind.isCustomClient() &&
// updateUrl.isNotEmpty &&
// !isCardClosed &&
// bind.mainUriPrefixSync().contains('rustdesk')) {
// return buildInstallCard(
// "Status",
// "There is a newer version of ${bind.mainGetAppNameSync()} ${bind.mainGetNewVersion()} available.",
// "Click to download", () async {
// final Uri url = Uri.parse('https://rustdesk.com/download');
// await launchUrl(url);
// }, closeButton: true);
//}
if (systemError.isNotEmpty) {
return buildInstallCard("", systemError, "", () {});
}
Expand Down

0 comments on commit 8075550

Please sign in to comment.