From 008e416bd4a41360337227ee6427064cb7620e0f Mon Sep 17 00:00:00 2001 From: jd-13 Date: Sun, 25 Feb 2024 19:53:28 +0000 Subject: [PATCH] Revert TooltipLabelUpdater changes --- WECore/CoreJUCEPlugin/TooltipLabelUpdater.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/WECore/CoreJUCEPlugin/TooltipLabelUpdater.h b/WECore/CoreJUCEPlugin/TooltipLabelUpdater.h index 9525a86..e965f68 100644 --- a/WECore/CoreJUCEPlugin/TooltipLabelUpdater.h +++ b/WECore/CoreJUCEPlugin/TooltipLabelUpdater.h @@ -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. @@ -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; @@ -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); }