Fix opening panels by uieventsource

This commit is contained in:
Pieter Vander Vennet 2021-12-02 22:57:27 +01:00
parent 855a76ec1e
commit fbce58bc52

View file

@ -44,8 +44,10 @@ export default class ScrollableFullScreen extends UIElement {
const self = this;
isShown.addCallback(isShown => {
if (isShown) {
self.Activate();
// We first must set the hash, then activate the panel
// If the order is wrong, this will cause the panel to disactivate again
Hash.hash.setData(hashToShow)
self.Activate();
} else {
self.clear();
}