removed unnecessary HBox

This commit is contained in:
Jan-Peter Klein 2024-05-07 13:27:52 +02:00
parent 9ad2d223c3
commit da8e84f39d
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E
2 changed files with 7 additions and 11 deletions

View File

@ -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

View File

@ -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"/>