Merge pull request #5346 from 21pages/fix

fix temporary password not update right now when length changed
This commit is contained in:
RustDesk 2023-08-11 12:24:21 +08:00 committed by GitHub
commit 544cb203ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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