fixes #1244 by renaming the refresh button and adding a method call

This commit is contained in:
Martin Beyer
2020-06-30 09:36:46 +02:00
parent 8d15a6612f
commit e831debb94
3 changed files with 8 additions and 2 deletions

View File

@@ -2,7 +2,9 @@ package org.cryptomator.ui.mainwindow;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.fxml.FXML;
import org.cryptomator.common.vaults.Vault;
import org.cryptomator.common.vaults.VaultListManager;
import org.cryptomator.ui.common.FxController;
import javax.inject.Inject;
@@ -17,4 +19,8 @@ public class VaultDetailMissingVaultController implements FxController {
this.vault = vault;
}
@FXML
public void recheck() {
VaultListManager.redetermineVaultState(vault.get());
}
}

View File

@@ -21,7 +21,7 @@
</FontAwesome5IconView>
</StackPane>
<Label text="%main.vaultDetail.missing.info" wrapText="true"/>
<Button text="%main.vaultDetail.missing.refresh" minWidth="120">
<Button text="%main.vaultDetail.missing.recheck" minWidth="120" onAction="#recheck">
<graphic>
<FontAwesome5IconView glyph="REDO"/>
</graphic>

View File

@@ -193,7 +193,7 @@ main.vaultDetail.throughput.kbps=%.1f kiB/s
main.vaultDetail.throughput.mbps=%.1f MiB/s
### Missing
main.vaultDetail.missing.info=Cryptomator could not find a vault at this path.
main.vaultDetail.missing.refresh=Refresh current vault
main.vaultDetail.missing.recheck=Recheck
### Needs Migration
main.vaultDetail.migrateButton=Upgrade Vault
main.vaultDetail.migratePrompt=Your vault needs to be upgraded to a new format, before you can access it