mirror of
http://10.0.2.1:3031/sauer/bfa-dryer-design.git
synced 2026-06-30 12:56:42 +10:00
Auto-open blocks panel on load
This commit is contained in:
parent
73705bdad7
commit
e544da537a
@ -218,6 +218,13 @@ editor.Panels.addButton('options', {
|
|||||||
// ══════════════════════════════════════════════════════
|
// ══════════════════════════════════════════════════════
|
||||||
registerHMIBlocks(editor);
|
registerHMIBlocks(editor);
|
||||||
|
|
||||||
|
// Open blocks panel by default
|
||||||
|
editor.on('load', () => {
|
||||||
|
const pn = editor.Panels;
|
||||||
|
const openBl = pn.getButton('views', 'open-blocks');
|
||||||
|
if (openBl) openBl.set('active', true);
|
||||||
|
});
|
||||||
|
|
||||||
// ══════════════════════════════════════════════════════
|
// ══════════════════════════════════════════════════════
|
||||||
// Save / Load / Export
|
// Save / Load / Export
|
||||||
// ══════════════════════════════════════════════════════
|
// ══════════════════════════════════════════════════════
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user