quit application when closing the window and no vault is unlocked [ci skip]

This commit is contained in:
Sebastian Stenzel
2016-03-03 12:19:20 +01:00
parent c130d0e4a0
commit e3fd25aa41

View File

@@ -324,7 +324,7 @@ public class MainController extends AbstractFXMLViewController {
public void didLock(UnlockedController ctrl) {
unlockedVaults.remove(ctrl.getVault());
showUnlockView();
if (vaults.stream().anyMatch(Vault::isUnlocked)) {
if (!vaults.stream().anyMatch(Vault::isUnlocked)) {
Platform.setImplicitExit(true);
}
}