Skip to content

Commit

Permalink
fix MainComponent editorListener bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
vsicurella committed Aug 11, 2024
1 parent 70e60c0 commit a4898fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/MainComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
//==============================================================================
MainContentComponent::MainContentComponent(const LumatoneEditorState& stateIn, juce::ApplicationCommandManager* commandManager)
: LumatoneEditorState("MainComponent", stateIn)
, LumatoneEditorState::Controller(*this)
, LumatoneEditorState::Controller(static_cast<LumatoneEditorState&>(*this))
, copiedSubBoardData(std::make_unique<LumatoneBoard>())
{
setName("MainContentComponent");
Expand Down Expand Up @@ -124,6 +124,7 @@ MainContentComponent::MainContentComponent(const LumatoneEditorState& stateIn, j


addStatusListener(this);
addEditorListener(this);

// Initial size
// setSize(DEFAULTMAINWINDOWWIDTH, DEFAULTMAINWINDOWHEIGHT);
Expand Down

0 comments on commit a4898fa

Please sign in to comment.