mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 04:12:20 +08:00
add remove-preset-password-warning-of
This commit is contained in:
parent
0511cdbb21
commit
48efdcf1f0
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user