diff --git a/Source/MainComponent.cpp b/Source/MainComponent.cpp index 2acbc68..b6a5a3f 100644 --- a/Source/MainComponent.cpp +++ b/Source/MainComponent.cpp @@ -33,7 +33,7 @@ //============================================================================== MainContentComponent::MainContentComponent(const LumatoneEditorState& stateIn, juce::ApplicationCommandManager* commandManager) : LumatoneEditorState("MainComponent", stateIn) - , LumatoneEditorState::Controller(*this) + , LumatoneEditorState::Controller(static_cast(*this)) , copiedSubBoardData(std::make_unique()) { setName("MainContentComponent"); @@ -124,6 +124,7 @@ MainContentComponent::MainContentComponent(const LumatoneEditorState& stateIn, j addStatusListener(this); + addEditorListener(this); // Initial size // setSize(DEFAULTMAINWINDOWWIDTH, DEFAULTMAINWINDOWHEIGHT);