Skip to content

Commit 21efe24

Browse files
committed
Binding formatting items visibility to editable property. Closes #17
1 parent 3cdbb00 commit 21efe24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/dansoftware/mdeditor/Toolbar.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public void changed(ObservableValue<? extends Skin<?>> observable, Skin<?> oldVa
8484
}
8585
}
8686
});
87+
button.visibleProperty().bind(control.editableProperty());
8788
button.setId(id);
8889
button.setOnAction(e -> formatText(pattern));
8990
return button;

0 commit comments

Comments
 (0)