change to remove-preset-password-warning

This commit is contained in:
rustdesk 2024-07-05 20:09:26 +08:00
parent 48efdcf1f0
commit d4f3a87276

View File

@ -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(