Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit 759a448

Browse files
authored
fix: concurrent modify exception (#19)
1 parent b2e63bd commit 759a448

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/src/main/java/cc/cc1234/app/controller/NodeViewController.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ private void registerTreeViewListener() {
165165
zkNodeTreeView.getSelectionModel()
166166
.selectedItemProperty()
167167
.addListener((observable, oldValue, newValue) -> {
168-
nodeAddViewController.hide();
169-
if (newValue != null) {
170-
nodeInfoViewController.show(nodeViewRightPane, newValue.getValue());
168+
synchronized (this) {
169+
nodeAddViewController.hide();
170+
if (newValue != null) {
171+
nodeInfoViewController.show(nodeViewRightPane, newValue.getValue());
172+
}
171173
}
172174
});
173175
}

app/src/main/resources/assets/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@
549549
-fx-border-color: #a0a0a0;
550550
-fx-background-insets: 0;
551551
-fx-background-color: transparent, white, transparent, white;
552-
-fx-border-width: 1 1 0 1;
552+
-fx-border-width: 1 1 1 1;
553553
/*-fx-effect: dropshadow(three-pass-box, #8e8e8e, 10, 0.3, 2.2, 2.2);*/
554554
}
555555

0 commit comments

Comments
 (0)