eirikbakke commented on code in PR #6391:
URL: https://github.com/apache/netbeans/pull/6391#discussion_r1325580612
##########
platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLafOptionsPanelController.java:
##########
@@ -75,9 +81,33 @@ public void applyChanges() {
FlatLFCustoms.updateUnifiedBackground();
- if (oldUseWindowDecorations !=
FlatLafPrefs.isUseWindowDecorations()) {
-
FlatLaf.setUseNativeWindowDecorations(FlatLafPrefs.isUseWindowDecorations());
- }
+ boolean isUseWindowDecorations =
FlatLafPrefs.isUseWindowDecorations();
+ if (oldUseWindowDecorations != isUseWindowDecorations) {
+ if (FlatLaf.supportsNativeWindowDecorations()) {
+
FlatLaf.setUseNativeWindowDecorations(isUseWindowDecorations);
+ } else {
+
JFrame.setDefaultLookAndFeelDecorated(isUseWindowDecorations);
Review Comment:
Either is fine with me. It's nice to be able to see the changes without
restarting, and as long as any bugs disappear on restart, I'm not too worried.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists