Skip to content

Commit 1ff7a52

Browse files
committed
Fix editor opening for new palettes
1 parent 1d855bd commit 1ff7a52

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Source/Sidebar/Palettes.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ class PaletteList final : public Component
111111
// make a new paletteItem,
112112
auto const paletteItem = new PaletteItem(editor, this, itemTree);
113113
addAndMakeVisible(items.add(paletteItem));
114+
115+
if (gainEditorFocus)
116+
MessageManager::callAsync([_paletteItem = SafePointer(paletteItem)] {
117+
if (_paletteItem)
118+
_paletteItem->nameLabel.showEditor();
119+
});
120+
114121
resized();
115122
};
116123

0 commit comments

Comments
 (0)