mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-21 01:56:55 -04:00
Apply suggestions from code review
more renaming Co-authored-by: Tobias Hagemann <tobias.hagemann@skymatic.de>
This commit is contained in:
@@ -100,7 +100,7 @@ public class HubToPasswordConvertController implements FxController {
|
||||
@FXML
|
||||
public void convert() {
|
||||
Preconditions.checkState(newPasswordController.isGoodPassword());
|
||||
LOG.info("Converting hub vault {} to local", vault.getPath());
|
||||
LOG.info("Converting hub vault {} to password", vault.getPath());
|
||||
CompletableFuture.runAsync(() -> conversionStarted.setValue(true), Platform::runLater) //
|
||||
.thenRunAsync(this::convertInternal, backgroundExecutorService)
|
||||
.whenCompleteAsync((result, exception) -> {
|
||||
@@ -121,7 +121,7 @@ public class HubToPasswordConvertController implements FxController {
|
||||
recoveryKeyFactory.newMasterkeyFileWithPassphrase(vault.getPath(), recoveryKey.get(), passphrase);
|
||||
LOG.debug("Successfully created masterkey file for vault {}", vault.getPath());
|
||||
backupHubConfig(vault.getPath().resolve(VAULTCONFIG_FILENAME));
|
||||
replaceWithLocalConfig(passphrase);
|
||||
replaceWithPasswordConfig(passphrase);
|
||||
} catch (MasterkeyLoadingFailedException e) {
|
||||
throw new CompletionException(new IOException("Vault conversion failed", e));
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user