Forráskód Böngészése

Implements #1244 by adding a small button to regain focus

Martin 5 éve
szülő
commit
8d15a6612f

+ 2 - 1
main/ui/src/main/java/org/cryptomator/ui/controls/FontAwesome5Icon.java

@@ -26,17 +26,18 @@ public enum FontAwesome5Icon {
 	INFO_CIRCLE("\uF05A"), //
 	KEY("\uF084"), //
 	LINK("\uF0C1"), //
-	UNLINK("\uf127"),
 	LOCK("\uF023"), //
 	LOCK_OPEN("\uF3C1"), //
 	MAGIC("\uF0D0"), //
 	PLUS("\uF067"), //
 	PRINT("\uF02F"), //
 	QUESTION("\uF128"), //
+	REDO("\uF01E"), //
 	SEARCH("\uF002"), //
 	SPINNER("\uF110"), //
 	SYNC("\uF021"), //
 	TIMES("\uF00D"), //
+	UNLINK("\uf127"), //
 	WRENCH("\uF0AD"), //
 	WINDOW_MINIMIZE("\uF2D1"), //
 	;

+ 6 - 1
main/ui/src/main/resources/fxml/vault_detail_missing.fxml

@@ -4,6 +4,7 @@
 <?import javafx.scene.layout.VBox?>
 <?import javafx.scene.shape.Circle?>
 <?import org.cryptomator.ui.controls.FontAwesome5IconView?>
+<?import javafx.scene.control.Button?>
 <VBox xmlns="http://javafx.com/javafx"
 	  xmlns:fx="http://javafx.com/fxml"
 	  fx:controller="org.cryptomator.ui.mainwindow.VaultDetailMissingVaultController"
@@ -19,7 +20,11 @@
 				</StackPane.margin>
 			</FontAwesome5IconView>
 		</StackPane>
-
 		<Label text="%main.vaultDetail.missing.info" wrapText="true"/>
+		<Button text="%main.vaultDetail.missing.refresh" minWidth="120">
+			<graphic>
+				<FontAwesome5IconView glyph="REDO"/>
+			</graphic>
+		</Button>
 	</children>
 </VBox>

+ 1 - 0
main/ui/src/main/resources/i18n/strings.properties

@@ -193,6 +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
 ### 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