Skip to content

Commit

Permalink
Fix #358 ui keyboard leak
Browse files Browse the repository at this point in the history
  • Loading branch information
asb2m10 committed Oct 17, 2022
1 parent 2c03631 commit 9e01c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ DexedAudioProcessorEditor::DexedAudioProcessorEditor (DexedAudioProcessor* owner
midiKeyboard (ownerFilter->keyboardState, MidiKeyboardComponent::horizontalKeyboard),
cartManager(this)
{
setSize(WINDOW_SIZE_X, (ownerFilter->showKeyboard ? WINDOW_SIZE_Y : 581));
setSize(WINDOW_SIZE_X, (ownerFilter->showKeyboard ? WINDOW_SIZE_Y : WINDOW_SIZE_Y - 94));

processor = ownerFilter;

Expand Down Expand Up @@ -214,7 +214,7 @@ void DexedAudioProcessorEditor::parmShow() {
this->processor->savePreference();

param->setSize(710, 355);
this->setSize(WINDOW_SIZE_X, (processor->showKeyboard ? WINDOW_SIZE_Y : 581));
this->setSize(WINDOW_SIZE_X, (processor->showKeyboard ? WINDOW_SIZE_Y : WINDOW_SIZE_Y - 94));
this->midiKeyboard.repaint();

if ( ret == false ) {
Expand Down

0 comments on commit 9e01c0c

Please sign in to comment.