Skip to content

Commit 008e416

Browse files
committed
Revert TooltipLabelUpdater changes
1 parent b09db81 commit 008e416

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

WECore/CoreJUCEPlugin/TooltipLabelUpdater.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace WECore::JUCEPlugin {
4747
* Starts updating the label as necessary, displaying build information when not showing a
4848
* tooltip.
4949
*/
50-
inline void start(juce::Label* targetLabel, juce::AudioProcessor::WrapperType pluginFormat, const juce::String& buildHash, bool isDemo, bool isPreRelease);
50+
inline void start(juce::Label* targetLabel, juce::AudioProcessor::WrapperType pluginFormat, bool isDemo = false);
5151

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

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

7878
_defaultString = JucePlugin_Name;
@@ -105,20 +105,11 @@ namespace WECore::JUCEPlugin {
105105
#error "Unknown arch"
106106
#endif
107107

108-
// Build hash
109-
_defaultString += " ";
110-
_defaultString += buildHash;
111-
112108
// Demo
113109
if (isDemo) {
114110
_defaultString += " (DEMO)";
115111
}
116112

117-
// Pre-release build
118-
if (isPreRelease) {
119-
_defaultString += " (PRE-RELEASE)";
120-
}
121-
122113
_targetLabel->setText(_defaultString, juce::dontSendNotification);
123114
}
124115

0 commit comments

Comments
 (0)