Skip to content

Commit

Permalink
Bugfix - correct button state on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
christofmuc committed Jun 3, 2021
1 parent 639c4db commit 9795406
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion The-Orm/PatchTextBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ PatchTextBox::PatchTextBox() : mode_(DisplayMode::PARAMS)
addAndMakeVisible(hexBased_);
hexBased_.setButtonText("Show hex values");
hexBased_.setClickingTogglesState(true);
hexBased_.setToggleState(true, dontSendNotification);
hexBased_.setRadioGroupId(3, dontSendNotification);
hexBased_.onClick = [this]() {
mode_ = DisplayMode::HEX;
Expand All @@ -37,10 +36,13 @@ PatchTextBox::PatchTextBox() : mode_(DisplayMode::PARAMS)
textBased_.setToggleState(true, dontSendNotification);
textBased_.setRadioGroupId(3, dontSendNotification);
textBased_.setClickingTogglesState(true);
textBased_.setVisible(false);
textBased_.onClick = [this]() {
mode_ = DisplayMode::PARAMS;
refreshText();
};

hexBased_.setToggleState(true, dontSendNotification);
}

void PatchTextBox::fillTextBox(std::shared_ptr<midikraft::PatchHolder> patch)
Expand Down

0 comments on commit 9795406

Please sign in to comment.