From a4898fadd3c26bcd7bcb83e103fc4cb76e1c3c41 Mon Sep 17 00:00:00 2001 From: Vincenzo Sicurella Date: Sat, 10 Aug 2024 21:26:50 -0400 Subject: [PATCH] fix MainComponent editorListener bugs --- Source/MainComponent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);