Add comment explaining why the use of JBR results in not having custom decorations

This commit is contained in:
Marcel Schramm
2021-04-01 22:14:31 +02:00
parent 620aa8bcee
commit d06993d940

View File

@@ -750,6 +750,9 @@ class DemoFrame
boolean supportsWindowDecorations = UIManager.getLookAndFeel()
.getSupportsWindowDecorations() || FlatNativeWindowBorder.isSupported();
// If the JetBrainsRuntime is used, it forces the use of it's own custom
// window decoration, meaning we can't use our own.
if( !supportsWindowDecorations || JBRCustomDecorations.isSupported() ) {
windowDecorationsCheckBoxMenuItem.setEnabled( false );
windowDecorationsCheckBoxMenuItem.setSelected( false );