mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 10:55:01 -04:00
fix cell still marked as connected or selected if it wasn't
This commit is contained in:
parent
7f31dcaf21
commit
4cbc4b6641
@ -223,13 +223,13 @@ public class ServerListCell extends ListCell<Server> implements Initializable {
|
|||||||
private void resetCell() {
|
private void resetCell() {
|
||||||
// clear all cells
|
// clear all cells
|
||||||
setStyle(null);
|
setStyle(null);
|
||||||
this.root.getStyleClass().remove("list-cell-connected");
|
this.root.getStyleClass().removeAll("list-cell-connected");
|
||||||
this.motdField.getChildren().clear();
|
this.motdField.getChildren().clear();
|
||||||
this.brandField.setText("");
|
this.brandField.setText("");
|
||||||
this.brandField.setTooltip(null);
|
this.brandField.setTooltip(null);
|
||||||
this.motdField.setStyle(null);
|
this.motdField.setStyle(null);
|
||||||
this.versionField.setText(LocaleManager.translate(Strings.CONNECTING));
|
this.versionField.setText(LocaleManager.translate(Strings.CONNECTING));
|
||||||
this.versionField.getStyleClass().remove("version-error");
|
this.versionField.getStyleClass().removeAll("version-error");
|
||||||
this.versionField.setStyle(null);
|
this.versionField.setStyle(null);
|
||||||
this.playersField.setText("");
|
this.playersField.setText("");
|
||||||
this.pingField.setText("");
|
this.pingField.setText("");
|
||||||
@ -313,7 +313,7 @@ public class ServerListCell extends ListCell<Server> implements Initializable {
|
|||||||
// maybe we got disconnected
|
// maybe we got disconnected
|
||||||
if (!this.server.isConnected()) {
|
if (!this.server.isConnected()) {
|
||||||
setStyle(null);
|
setStyle(null);
|
||||||
this.root.getStyleClass().remove("list-cell-connected");
|
this.root.getStyleClass().removeAll("list-cell-connected");
|
||||||
this.optionsSessions.setDisable(true);
|
this.optionsSessions.setDisable(true);
|
||||||
this.optionsConnect.setDisable(false);
|
this.optionsConnect.setDisable(false);
|
||||||
return;
|
return;
|
||||||
|
@ -101,7 +101,7 @@ public class AccountListCell extends ListCell<Account> implements Initializable
|
|||||||
|
|
||||||
private void resetCell() {
|
private void resetCell() {
|
||||||
// clear all cells
|
// clear all cells
|
||||||
this.hBox.getStyleClass().remove("list-cell-selected");
|
this.hBox.getStyleClass().removeAll("list-cell-selected");
|
||||||
this.selectIcon.setDisable(false);
|
this.selectIcon.setDisable(false);
|
||||||
this.head.setImage(GUITools.MINOSOFT_LOGO);
|
this.head.setImage(GUITools.MINOSOFT_LOGO);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user