This commit is contained in:
Armin Schrenk
2026-06-02 20:21:16 +02:00
parent 85b7265b95
commit 719a91692a
2 changed files with 2 additions and 2 deletions
@@ -72,7 +72,6 @@ class AppLaunchEventHandler {
// TODO deduplicate MainWindowController...
private void openPotentialVault(Path path) {
assert !Platform.isFxApplicationThread();
Path potentialVaultPath = path.getFileName().toString().endsWith(CRYPTOMATOR_FILENAME_EXT) ? path.getParent() : path;
Optional<Vault> existing = vaultListManager.get(potentialVaultPath.normalize().toAbsolutePath());
if (existing.isPresent()) {
@@ -338,7 +338,8 @@ public class VaultListController implements FxController {
LOG.warn("Cannot add {}: {}", target, e.getMessage());
Platform.runLater(() -> dialogs.prepareNotAVaultDirectoryDialog(mainWindow, e).build().showAndWait());
} catch (IOException e) {
LOG.error("Failed to add vault {}", target, e);
LOG.warn("Failed to add vault {}", target, e);
Platform.runLater(() -> appWindows.showErrorWindow(e, mainWindow, null));
}
});
}