Fixed not displaying "Home" icon. Mentioned in #513

This commit is contained in:
huanghongxun 2019-01-22 16:28:41 +08:00
parent cdfae54ab9
commit 78fcc69d29

View File

@ -207,7 +207,7 @@ public class DecoratorSkin extends SkinBase<Decorator> {
else navLeft.getChildren().setAll(backNavButton);
});
skinnable.showCloseAsHomeProperty().addListener((a, b, newValue) -> {
FXUtils.onChangeAndOperate(skinnable.showCloseAsHomeProperty(), (newValue) -> {
if (newValue)
closeNavButton.setGraphic(SVG.home(Theme.foregroundFillBinding(), -1, -1));
else