mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 10:26:19 +02:00
add remove-preset-password-warning-of
This commit is contained in:
parent
0511cdbb21
commit
48efdcf1f0
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue