Browse Source

Don't uninstall decorations if window handle is 0 on windows.

pull/75/head
weisj 5 years ago
parent
commit
0c4b499c33
  1. 2
      windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

2
windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

@ -188,8 +188,10 @@ public class WindowsTitlePane extends CustomTitlePane {
protected void uninstallDecorations() {
window = null;
if (windowHandle != 0) {
JNIDecorationsWindows.uninstallDecorations(windowHandle);
windowHandle = 0;
}
rootPane.removeContainerListener(rootPaneContainerListener);
rootPane.getLayeredPane().removeContainerListener(layeredPaneContainerListener);
if (menuBar != null) {

Loading…
Cancel
Save