Backport PR #22502 on branch 6.x (PR: Reset undocked before hiding
state of all plugins before applying layout)
#22503
Loading
undocked before hiding
state of all plugins before applying layout)
#22503