From 294ffcd9d3b5ffa04eea230892db8dd860b419e4 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 10 Jun 2025 22:01:15 +0800 Subject: [PATCH] hide-powered-by-me --- flutter/lib/common.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index ccb4f7fb0..85f2f5c65 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -2317,7 +2317,8 @@ List? urlLinkToCmdArgs(Uri uri) { if (isMobile) { if (id != null) { final forceRelay = queryParameters["relay"] != null; - connect(Get.context!, id, forceRelay: forceRelay, password: queryParameters["password"]); + connect(Get.context!, id, + forceRelay: forceRelay, password: queryParameters["password"]); return null; } } @@ -3446,6 +3447,9 @@ 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(