mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Small lock change fixes
This commit is contained in:
parent
e32ee4da2f
commit
2e7fae6bde
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -119,7 +119,7 @@ public abstract class DataStorage {
|
|||
});
|
||||
}
|
||||
|
||||
private synchronized void dispose() {
|
||||
private void dispose() {
|
||||
save(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue