hide-powered-by-me

This commit is contained in:
rustdesk 2025-06-10 22:01:15 +08:00
parent 738afb54d7
commit 294ffcd9d3

View File

@ -2317,7 +2317,8 @@ List<String>? urlLinkToCmdArgs(Uri uri) {
if (isMobile) { if (isMobile) {
if (id != null) { if (id != null) {
final forceRelay = queryParameters["relay"] != 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; return null;
} }
} }
@ -3446,6 +3447,9 @@ Color? disabledTextColor(BuildContext context, bool enabled) {
} }
Widget loadPowered(BuildContext context) { Widget loadPowered(BuildContext context) {
if (bind.mainGetBuildinOption(key: "hide-powered-by-me") == 'Y') {
return SizedBox.shrink();
}
return MouseRegion( return MouseRegion(
cursor: SystemMouseCursors.click, cursor: SystemMouseCursors.click,
child: GestureDetector( child: GestureDetector(