Heap widget visibility fixes

This commit is contained in:
Jindra Petřík
2025-07-07 21:27:03 +02:00
parent 3508260abb
commit 77423786d1
2 changed files with 8 additions and 1 deletions

View File

@@ -51,8 +51,8 @@ public abstract class AppDialog extends JDialog {
View.installEscapeCloseOperation(this);
if (Configuration.useRibbonInterface.get()) {
getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
SubstanceLookAndFeel.setWidgetVisible(this.rootPane, false, SubstanceConstants.SubstanceWidgetType.TITLE_PANE_HEAP_STATUS);
}
SubstanceLookAndFeel.setWidgetVisible(this.rootPane, false, SubstanceConstants.SubstanceWidgetType.TITLE_PANE_HEAP_STATUS);
}
public ResourceBundle getResourceBundle() {

View File

@@ -57,10 +57,13 @@ import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRootPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JToggleButton;
import javax.swing.filechooser.FileFilter;
import org.pushingpixels.substance.api.SubstanceConstants;
import org.pushingpixels.substance.api.SubstanceLookAndFeel;
/**
* @author JPEXS
@@ -231,6 +234,10 @@ public class ErrorLogFrame extends AppFrame {
}
};
handler.setLevel(Level.WARNING);
if (Configuration.useRibbonInterface.get()) {
SubstanceLookAndFeel.setWidgetVisible(this.rootPane, false, SubstanceConstants.SubstanceWidgetType.TITLE_PANE_HEAP_STATUS);
}
}
public void clearLog() {