add remove-preset-password-warning-of

This commit is contained in:
rustdesk 2024-07-05 19:26:20 +08:00
parent 0511cdbb21
commit 48efdcf1f0

View File

@ -3301,6 +3301,13 @@ 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) {
return SizedBox.shrink();
}
return Container(
color: Colors.yellow,
child: Column(