Jan-Peter Klein 1 год назад
Родитель
Сommit
da8e84f39d

+ 0 - 2
src/main/java/org/cryptomator/ui/preferences/UpdatesPreferencesController.java

@@ -20,7 +20,6 @@ import javafx.fxml.FXML;
 import javafx.scene.control.CheckBox;
 import javafx.scene.control.ContentDisplay;
 import javafx.scene.control.Label;
-import javafx.scene.layout.HBox;
 import java.time.Duration;
 import java.time.Instant;
 import java.time.LocalDateTime;
@@ -55,7 +54,6 @@ public class UpdatesPreferencesController implements FxController {
 
 	/* FXML */
 	public CheckBox checkForUpdatesCheckbox;
-	public HBox checkFailedHBox;
 	public Label upToDateLabel;
 
 	@Inject

+ 7 - 9
src/main/resources/fxml/preferences_updates.fxml

@@ -35,15 +35,13 @@
 			</graphic>
 		</Button>
 
-		<HBox fx:id="checkFailedHBox" spacing="12" alignment="CENTER" visible="${controller.checkFailed}" managed="${controller.checkFailed}">
-			<TextFlow styleClass="text-flow" textAlignment="CENTER">
-				<FontAwesome5IconView glyphSize="12" styleClass="glyph-icon-orange" glyph="EXCLAMATION_TRIANGLE"/>
-				<Text text=" "/>
-				<Text text="%preferences.updates.checkFailed"/>
-				<Text text=" "/>
-				<Hyperlink styleClass="hyperlink-underline" text="%preferences.general.debugDirectory" onAction="#showLogfileDirectory"/>
-			</TextFlow>
-		</HBox>
+		<TextFlow styleClass="text-flow" textAlignment="CENTER" visible="${controller.checkFailed}" managed="${controller.checkFailed}">
+			<FontAwesome5IconView glyphSize="12" styleClass="glyph-icon-orange" glyph="EXCLAMATION_TRIANGLE"/>
+			<Text text=" "/>
+			<Text text="%preferences.updates.checkFailed"/>
+			<Text text=" "/>
+			<Hyperlink styleClass="hyperlink-underline" text="%preferences.general.debugDirectory" onAction="#showLogfileDirectory"/>
+		</TextFlow>
 		<FormattedLabel format="%preferences.updates.lastUpdateCheck" arg1="${controller.timeDifferenceMessage}" textAlignment="CENTER" wrapText="true">
 			<tooltip>
 				<Tooltip text="${controller.lastSuccessfulUpdateCheck}" showDelay="10ms"/>