Skip to content

Commit

Permalink
Binding formatting items visibility to editable property. Closes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
Dansoftowner committed Apr 15, 2021
1 parent 3cdbb00 commit 21efe24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/dansoftware/mdeditor/Toolbar.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public void changed(ObservableValue<? extends Skin<?>> observable, Skin<?> oldVa
}
}
});
button.visibleProperty().bind(control.editableProperty());
button.setId(id);
button.setOnAction(e -> formatText(pattern));
return button;
Expand Down

0 comments on commit 21efe24

Please sign in to comment.