From d4f3a872762954506e68e30dad9d472806fdbad8 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 5 Jul 2024 20:09:26 +0800 Subject: [PATCH] change to remove-preset-password-warning --- flutter/lib/common.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 61571f04b..390d75ff4 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -3301,11 +3301,8 @@ Widget buildPresetPasswordWarning() { return Text( 'Error: ${snapshot.error}'); // Show an error message if the Future completed with an error } else if (snapshot.hasData && snapshot.data == true) { - final idServer = - bind.mainGetOptionSync(key: 'custom-rendezvous-server'); - if (idServer.isNotEmpty && - bind.mainGetLocalOption(key: "remove-preset-password-warning-of") == - idServer) { + if (bind.mainGetLocalOption(key: "remove-preset-password-warning") == + 'Y') { return SizedBox.shrink(); } return Container(