kopia lustrzana https://github.com/jameshball/osci-render
Show correct toggle state in effect components when effects are disabled and enabled from a DAW
rodzic
b630a1b7cb
commit
bed8997a2a
|
@ -26,7 +26,6 @@
|
||||||
left: calc(calc(100vw - min(100vw, 100vh)) / 2);
|
left: calc(calc(100vw - min(100vw, 100vh)) / 2);
|
||||||
display: block;
|
display: block;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
z-index: -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#overlay {
|
#overlay {
|
||||||
|
@ -38,6 +37,7 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
|
@ -50,6 +50,7 @@
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
display: none;
|
display: none;
|
||||||
|
z-index: 99;
|
||||||
}
|
}
|
||||||
|
|
||||||
#buttonRow button {
|
#buttonRow button {
|
||||||
|
|
|
@ -166,6 +166,7 @@ void EffectComponent::parameterGestureChanged(int parameterIndex, bool gestureIs
|
||||||
|
|
||||||
void EffectComponent::handleAsyncUpdate() {
|
void EffectComponent::handleAsyncUpdate() {
|
||||||
setupComponent();
|
setupComponent();
|
||||||
|
getParentComponent()->repaint();
|
||||||
juce::SpinLock::ScopedLockType lock1(audioProcessor.parsersLock);
|
juce::SpinLock::ScopedLockType lock1(audioProcessor.parsersLock);
|
||||||
juce::SpinLock::ScopedLockType lock2(audioProcessor.effectsLock);
|
juce::SpinLock::ScopedLockType lock2(audioProcessor.effectsLock);
|
||||||
if (effect.getId().contains("lua")) {
|
if (effect.getId().contains("lua")) {
|
||||||
|
|
|
@ -158,7 +158,7 @@ protected:
|
||||||
Effect& effect;
|
Effect& effect;
|
||||||
ComponentListModel listModel;
|
ComponentListModel listModel;
|
||||||
juce::ListBox list;
|
juce::ListBox list;
|
||||||
jux::SwitchButton selected = { "switchButton", false };
|
jux::SwitchButton selected = { effect.enabled };
|
||||||
private:
|
private:
|
||||||
OscirenderAudioProcessor& audioProcessor;
|
OscirenderAudioProcessor& audioProcessor;
|
||||||
OscirenderAudioProcessorEditor& editor;
|
OscirenderAudioProcessorEditor& editor;
|
||||||
|
|
|
@ -343,7 +343,9 @@ void VisualiserComponent::resized() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisualiserComponent::childChanged() {
|
void VisualiserComponent::childChanged() {
|
||||||
|
if (!oldVisualiser) {
|
||||||
browser->emitEventIfBrowserIsVisible("childPresent", child != nullptr);
|
browser->emitEventIfBrowserIsVisible("childPresent", child != nullptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisualiserComponent::popoutWindow() {
|
void VisualiserComponent::popoutWindow() {
|
||||||
|
|
Ładowanie…
Reference in New Issue