windows gracy exit: fix issue #3728 #3395 #912

This commit is contained in:
rustdesk 2023-06-07 14:25:34 +08:00
parent e8ea2f383f
commit c69d59596b
4 changed files with 38 additions and 21 deletions

View file

@ -202,7 +202,10 @@ class ServerModel with ChangeNotifier {
temporaryPassword.isNotEmpty) {
_serverPasswd.text = temporaryPassword;
}
if (verificationMethod == kUsePermanentPassword ||
var stopped = option2bool(
"stop-service", await bind.mainGetOption(key: "stop-service"));
if (stopped ||
verificationMethod == kUsePermanentPassword ||
_approveMode == 'click') {
_serverPasswd.text = '-';
}