mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 20:20:51 +00:00
Always on top not in dialogs.
This commit is contained in:
+7
-1
@@ -1157,13 +1157,17 @@ public class SubstanceTitlePane extends JComponent {
|
||||
this.restoreAction.setEnabled(false);
|
||||
}
|
||||
if ((this.toggleButton.getParent() == null)
|
||||
|| (this.minimizeButton.getParent() == null)) {
|
||||
|| (this.minimizeButton.getParent() == null)
|
||||
|| (this.alwaysOnTopButton.getParent() == null)
|
||||
) {
|
||||
this.add(this.alwaysOnTopButton);
|
||||
this.add(this.toggleButton);
|
||||
this.add(this.minimizeButton);
|
||||
this.revalidate();
|
||||
this.repaint();
|
||||
}
|
||||
this.toggleButton.setText(null);
|
||||
this.alwaysOnTopAction.setEnabled(true);
|
||||
} else {
|
||||
this.maximizeAction.setEnabled(false);
|
||||
this.restoreAction.setEnabled(false);
|
||||
@@ -1175,9 +1179,11 @@ public class SubstanceTitlePane extends JComponent {
|
||||
}
|
||||
} else {
|
||||
// Not contained in a Frame
|
||||
this.alwaysOnTopAction.setEnabled(false);
|
||||
this.maximizeAction.setEnabled(false);
|
||||
this.restoreAction.setEnabled(false);
|
||||
this.iconifyAction.setEnabled(false);
|
||||
this.remove(this.alwaysOnTopButton);
|
||||
this.remove(this.toggleButton);
|
||||
this.remove(this.minimizeButton);
|
||||
this.revalidate();
|
||||
|
||||
Reference in New Issue
Block a user