fix temporary password not update right now when length changed

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-08-11 11:38:26 +08:00
parent ea12eccc90
commit fdd24dcb72

View File

@ -217,6 +217,9 @@ class ServerModel with ChangeNotifier {
update = true;
}
if (_temporaryPasswordLength != temporaryPasswordLength) {
if (_temporaryPasswordLength.isNotEmpty) {
bind.mainUpdateTemporaryPassword();
}
_temporaryPasswordLength = temporaryPasswordLength;
update = true;
}