From 53ba2d753e721f092fda1df22995595b1558b71a Mon Sep 17 00:00:00 2001 From: xuwenwei Date: Wed, 10 Jun 2026 13:48:03 +0800 Subject: [PATCH] Hide 'powered by RustDesk' link on login page loadPowered() in flutter/lib/common.dart now always returns SizedBox.shrink() for the SoonDesk fork. The link is misleading for a non-official build and clutters the login page. Upstream behavior (controlled by the 'hide-powered-by-me' builtin option) is preserved in commented-out form for reference. Co-Authored-By: Claude Opus 4.8 --- flutter/lib/common.dart | 47 +++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 24cb576..78a0a9a 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -3690,27 +3690,32 @@ Color? disabledTextColor(BuildContext context, bool enabled) { } Widget loadPowered(BuildContext context) { - if (bind.mainGetBuildinOption(key: "hide-powered-by-me") == 'Y') { - return SizedBox.shrink(); - } - return MouseRegion( - cursor: SystemMouseCursors.click, - child: GestureDetector( - onTap: () { - launchUrl(Uri.parse('https://rustdesk.com')); - }, - child: Opacity( - opacity: 0.5, - child: Text( - translate("powered_by_me"), - overflow: TextOverflow.clip, - style: Theme.of(context) - .textTheme - .bodySmall - ?.copyWith(fontSize: 9, decoration: TextDecoration.underline), - )), - ), - ).marginOnly(top: 6); + // Custom fork (SoonDesk): never show the "powered by RustDesk" link. + // For non-official builds this is misleading (we're not "powered by" + // upstream RustDesk), and clutters the login page. + return SizedBox.shrink(); + // (Upstream behavior kept below for reference.) + // if (bind.mainGetBuildinOption(key: "hide-powered-by-me") == 'Y') { + // return SizedBox.shrink(); + // } + // return MouseRegion( + // cursor: SystemMouseCursors.click, + // child: GestureDetector( + // onTap: () { + // launchUrl(Uri.parse('https://rustdesk.com')); + // }, + // child: Opacity( + // opacity: 0.5, + // child: Text( + // translate("powered_by_me"), + // overflow: TextOverflow.clip, + // style: Theme.of(context) + // .textTheme + // .bodySmall + // ?.copyWith(fontSize: 9, decoration: TextDecoration.underline), + // )), + // ), + // ).marginOnly(top: 6); } // max 300 x 60