~exprez135/cryptomator-libre

e831debb943a7e37aaa2a4190a3611fe08f70715 — Martin Beyer 1 year, 5 months ago 8d15a66
fixes #1244 by renaming the refresh button and adding a method call

M main/ui/src/main/java/org/cryptomator/ui/mainwindow/VaultDetailMissingVaultController.java => main/ui/src/main/java/org/cryptomator/ui/mainwindow/VaultDetailMissingVaultController.java +6 -0
@@ 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());
	}
}

M main/ui/src/main/resources/fxml/vault_detail_missing.fxml => main/ui/src/main/resources/fxml/vault_detail_missing.fxml +1 -1
@@ 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>

M main/ui/src/main/resources/i18n/strings.properties => main/ui/src/main/resources/i18n/strings.properties +1 -1
@@ 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