root: hideMenu should be ignored when --read-only is set

This commit is contained in:
jean-emmanuel 2022-03-01 10:02:14 +01:00
parent f291b5e475
commit b6ea4e7d9f

View file

@ -57,11 +57,15 @@ class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'ro
}
checkMenuVisibility() {
if (READ_ONLY) return
if (this.getProp('hideMenu')) {
mainMenu.container.style.display = 'none'
} else {
mainMenu.container.style.display = ''
}
}
isVisible() {