This commit is contained in:
sirjonasxx 2020-12-28 00:55:45 +01:00
parent 96ee5e4b08
commit 950ab2e61b
2 changed files with 4 additions and 1 deletions

View File

@ -59,6 +59,7 @@ public class ExtraController extends SubForm implements SocksConfiguration {
public ToggleGroup tgl_clientMode;
public RadioButton rd_unity;
public RadioButton rd_flash;
public GridPane grd_clientSelection;
public void initialize() {
TypeCheckerProducer.UNITY_PACKETS = rd_unity.isSelected();
@ -131,6 +132,8 @@ public class ExtraController extends SubForm implements SocksConfiguration {
}
private void updateAdvancedUI() {
grd_clientSelection.setDisable(getHConnection().getState() != HState.NOT_CONNECTED);
if (!cbx_advanced.isSelected()) {
cbx_debug.setSelected(false);
cbx_useSocks.setSelected(false);

View File

@ -117,7 +117,7 @@
<Insets left="10.0" top="2.0" />
</GridPane.margin>
</CheckBox>
<GridPane prefHeight="26.0" prefWidth="286.0" style="-fx-border-color: #888888; -fx-border-radius: 5px;" GridPane.rowIndex="1">
<GridPane fx:id="grd_clientSelection" prefHeight="26.0" prefWidth="286.0" style="-fx-border-color: #888888; -fx-border-radius: 5px;" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" maxWidth="149.0" minWidth="10.0" prefWidth="38.0" />
<ColumnConstraints hgrow="SOMETIMES" maxWidth="81.0" minWidth="69.0" prefWidth="75.0" />