Browse Source

Avoid popup installation if decorations are disabled.

pull/130/head
weisj 5 years ago
parent
commit
93a2c01bd0
  1. 10
      core/src/main/java/com/github/weisj/darklaf/ui/DarkPopupFactory.java

10
core/src/main/java/com/github/weisj/darklaf/ui/DarkPopupFactory.java

@ -86,10 +86,12 @@ public class DarkPopupFactory extends PopupFactory {
window.setFocusableWindowState(true); window.setFocusableWindowState(true);
} }
if (install) { if (DecorationsHandler.getSharedInstance().isCustomDecorationSupported()) {
DecorationsHandler.getSharedInstance().installPopupWindow(window); if (install) {
} else { DecorationsHandler.getSharedInstance().installPopupWindow(window);
DecorationsHandler.getSharedInstance().uninstallPopupWindow(window); } else {
DecorationsHandler.getSharedInstance().uninstallPopupWindow(window);
}
} }
if (startHidden) { if (startHidden) {
((JComponent) contents).putClientProperty(DarkPopupMenuUI.KEY_MAKE_VISIBLE, true); ((JComponent) contents).putClientProperty(DarkPopupMenuUI.KEY_MAKE_VISIBLE, true);

Loading…
Cancel
Save