Skip to content

Commit

Permalink
Revert TooltipLabelUpdater changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-13 committed Feb 25, 2024
1 parent b09db81 commit 008e416
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions WECore/CoreJUCEPlugin/TooltipLabelUpdater.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace WECore::JUCEPlugin {
* Starts updating the label as necessary, displaying build information when not showing a
* tooltip.
*/
inline void start(juce::Label* targetLabel, juce::AudioProcessor::WrapperType pluginFormat, const juce::String& buildHash, bool isDemo, bool isPreRelease);
inline void start(juce::Label* targetLabel, juce::AudioProcessor::WrapperType pluginFormat, bool isDemo = false);

/**
* Must be called before the given label is destructed.
Expand All @@ -72,7 +72,7 @@ namespace WECore::JUCEPlugin {
_defaultString = "";
}

void TooltipLabelUpdater::start(juce::Label* targetLabel, juce::AudioProcessor::WrapperType pluginFormat, const juce::String& buildHash, bool isDemo, bool isPreRelease) {
void TooltipLabelUpdater::start(juce::Label* targetLabel, juce::AudioProcessor::WrapperType pluginFormat, bool isDemo) {
_targetLabel = targetLabel;

_defaultString = JucePlugin_Name;
Expand Down Expand Up @@ -105,20 +105,11 @@ namespace WECore::JUCEPlugin {
#error "Unknown arch"
#endif

// Build hash
_defaultString += " ";
_defaultString += buildHash;

// Demo
if (isDemo) {
_defaultString += " (DEMO)";
}

// Pre-release build
if (isPreRelease) {
_defaultString += " (PRE-RELEASE)";
}

_targetLabel->setText(_defaultString, juce::dontSendNotification);
}

Expand Down

0 comments on commit 008e416

Please sign in to comment.