Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix temporary password not update right now when length changed

21pagesfdd24dcb7252
diff --git a/flutter/lib/models/server_model.dart b/flutter/lib/models/server_model.dart
index 6e6dd2b82..e48ceef42 100644
--- a/flutter/lib/models/server_model.dart
+++ b/flutter/lib/models/server_model.dart
@@ -217,6 +217,9 @@ class ServerModel with ChangeNotifier {
update = true;
}
if (_temporaryPasswordLength != temporaryPasswordLength) {
+ if (_temporaryPasswordLength.isNotEmpty) {
+ bind.mainUpdateTemporaryPassword();
+ }
_temporaryPasswordLength = temporaryPasswordLength;
update = true;
}