mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 05:20:24 -07:00
supa fixa
This commit is contained in:
parent
9f5d6f59e3
commit
16546ef862
3 changed files with 206 additions and 165 deletions
|
|
@ -176,9 +176,22 @@ class plugin : Plugin() {
|
|||
// Ensure Swing updates happen on the EDT to avoid flicker
|
||||
SwingUtilities.invokeLater {
|
||||
updateDisplaySettings()
|
||||
frame.remove(rightPanelWrapper)
|
||||
frame.layout = BorderLayout()
|
||||
rightPanelWrapper?.let { frame.add(it, BorderLayout.EAST) }
|
||||
rightPanelWrapper?.let { wrapper ->
|
||||
wrapper.ignoreRepaint = true
|
||||
try {
|
||||
val parent = wrapper.parent
|
||||
val wrapperNeedsAttach = parent != frame
|
||||
if (wrapperNeedsAttach) {
|
||||
parent?.remove(wrapper)
|
||||
frame.layout = BorderLayout()
|
||||
frame.add(wrapper, BorderLayout.EAST)
|
||||
}
|
||||
wrapper.revalidate()
|
||||
wrapper.repaint()
|
||||
} finally {
|
||||
wrapper.ignoreRepaint = false
|
||||
}
|
||||
}
|
||||
frame.revalidate()
|
||||
frame.repaint()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue