mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 03:28:03 +00:00
refresh icon not visible when not using one-time password (#9791)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -446,7 +446,6 @@ class ServerInfo extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final isPermanent = model.verificationMethod == kUsePermanentPassword;
|
||||
final serverModel = Provider.of<ServerModel>(context);
|
||||
|
||||
const Color colorPositive = Colors.green;
|
||||
@@ -486,6 +485,8 @@ class ServerInfo extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
final showOneTime = serverModel.approveMode != 'click' &&
|
||||
serverModel.verificationMethod != kUsePermanentPassword;
|
||||
return PaddingCard(
|
||||
title: translate('Your Device'),
|
||||
child: Column(
|
||||
@@ -523,10 +524,10 @@ class ServerInfo extends StatelessWidget {
|
||||
]),
|
||||
Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
||||
Text(
|
||||
isPermanent ? '-' : model.serverPasswd.value.text,
|
||||
!showOneTime ? '-' : model.serverPasswd.value.text,
|
||||
style: textStyleValue,
|
||||
),
|
||||
isPermanent
|
||||
!showOneTime
|
||||
? SizedBox.shrink()
|
||||
: Row(children: [
|
||||
IconButton(
|
||||
|
||||
Reference in New Issue
Block a user