Auto-open blocks panel on load

This commit is contained in:
Richard Sauer 2026-04-08 17:19:11 +10:00
parent 73705bdad7
commit e544da537a

View File

@ -218,6 +218,13 @@ editor.Panels.addButton('options', {
// ══════════════════════════════════════════════════════
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
// ══════════════════════════════════════════════════════