mbien commented on PR #6391:
URL: https://github.com/apache/netbeans/pull/6391#issuecomment-1732054418
how does this behave on other systems, do the window decoration changes take
immediate effect when the option is applied?
we should probably trigger the restart notification bubble (this might need
a isLinux() check if the restart is unique to linux):
```diff
diff --git
a/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLafOptionsPanel.java
b/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLafOptionsPanel.java
index f95768a..436c6d8 100644
---
a/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLafOptionsPanel.java
+++
b/platform/o.n.swing.laf.flatlaf/src/org/netbeans/swing/laf/flatlaf/FlatLafOptionsPanel.java
@@ -53,6 +53,7 @@
private static final Color DEFAULT = new Color(0, true);
private static final Color currentAccentColor =
FlatLafPrefs.getAccentColor();
+ private static final boolean currentUseWindowDecorations =
FlatLafPrefs.isUseWindowDecorations();
private static final RequestProcessor RP = new
RequestProcessor(FlatLafOptionsPanel.class);
@@ -341,7 +342,7 @@
FlatLafPrefs.setUnderlineMenuSelection(underlineMenuSelectionCheckBox.isSelected());
FlatLafPrefs.setAlwaysShowMnemonics(alwaysShowMnemonicsCheckBox.isSelected());
- if (!Objects.equals(accentColor, currentAccentColor)) {
+ if (!Objects.equals(accentColor, currentAccentColor) ||
useWindowDecorationsCheckBox.isSelected() != currentUseWindowDecorations) {
askForRestart();
}
return false;
```
--
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