Small lock change fixes

This commit is contained in:
crschnick 2024-05-12 08:29:32 +00:00
parent e32ee4da2f
commit 2e7fae6bde
2 changed files with 5 additions and 1 deletions

View file

@ -322,6 +322,10 @@ public class AppPrefs {
}
public void changeLock(InPlaceSecretValue newLockPw) {
if (lockCrypt.get() == null && newLockPw == null) {
return;
}
if (newLockPw == null) {
lockPassword.setValue(null);
lockCrypt.setValue(null);

View file

@ -119,7 +119,7 @@ public abstract class DataStorage {
});
}
private synchronized void dispose() {
private void dispose() {
save(true);
}