fix(logic): immigrates LangSelectMenu to own controller
fix(println): also disappears the debug println statement from prod code TODO: in the distant future, consider using a nice logging framework (log4j?? or whatever spring boot is using..)
This commit is contained in:
parent
7e69976e5e
commit
ca7c5cbfb9
4 changed files with 117 additions and 54 deletions
|
|
@ -38,8 +38,7 @@
|
|||
<padding>
|
||||
<Insets bottom="10" left="10" right="10" top="10" />
|
||||
</padding>
|
||||
<ComboBox fx:id="langSelectMenu" onAction="#switchLocale">
|
||||
</ComboBox>
|
||||
<fx:include source="LangSelect.fxml" />
|
||||
<Button fx:id="refreshButton" onAction="#refresh" prefHeight="25.0" prefWidth="34.0" text="⟳" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
||||
<Label fx:id="recipesLabel" text="Recipes">
|
||||
<font>
|
||||
|
|
|
|||
16
client/src/main/resources/client/scenes/LangSelect.fxml
Normal file
16
client/src/main/resources/client/scenes/LangSelect.fxml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import java.lang.*?>
|
||||
<?import java.util.*?>
|
||||
<?import javafx.scene.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<ComboBox
|
||||
fx:id="langSelectMenu"
|
||||
xmlns="http://javafx.com/javafx/25"
|
||||
xmlns:fx="http://javafx.com/fxml/1"
|
||||
onAction="#switchLocale"
|
||||
fx:controller="client.scenes.LangSelectMenuCtrl"
|
||||
>
|
||||
</ComboBox>
|
||||
Loading…
Add table
Add a link
Reference in a new issue