ui: hide the console toggle button when the bottom panel is minimized and the editor is disabled

This commit is contained in:
bordun 2021-01-26 09:02:31 +01:00
parent 8e3e6266c5
commit a36f9da50d
4 changed files with 10 additions and 1 deletions

View file

@ -403,6 +403,7 @@ class Editor {
this.enabled = true
document.body.classList.add('editor-enabled')
document.body.classList.remove('editor-disabled')
this.widgetTree.updateTree(this.selectedWidgets)
@ -424,6 +425,7 @@ class Editor {
this.unselect()
this.selectedWidgets = []
document.body.classList.add('editor-disabled')
document.body.classList.remove('editor-enabled')
keyboardJS.setContext('global')