root: hideMenu should be ignored when --read-only is set
This commit is contained in:
parent
f291b5e475
commit
b6ea4e7d9f
1 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue