Fix avoiding unnecessary password changes.

This commit is contained in:
Michael Lipp 2024-06-06 15:58:22 +02:00
parent 92c9c6df9c
commit 0a1f89a270

View file

@ -116,8 +116,9 @@ public class DisplayController extends Component {
}
if (Objects.equals(this.currentPassword, password)) {
return false;
return true;
}
this.currentPassword = password;
logger.fine(() -> "Updating display password");
fire(new MonitorCommand(new QmpSetDisplayPassword(protocol, password)));
return true;