Fix crash: Editor is now thin — just reads scan state from Processor, no threads
Browse files
Source/PluginBridgeEditor.h
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
#pragma once
|
| 2 |
|
| 3 |
#include <juce_gui_basics/juce_gui_basics.h>
|
| 4 |
-
#include <juce_audio_processors/juce_audio_processors.h>
|
| 5 |
#include "PluginBridgeProcessor.h"
|
| 6 |
|
| 7 |
class PluginBridgeEditor : public juce::AudioProcessorEditor,
|
|
@@ -16,24 +15,17 @@ public:
|
|
| 16 |
|
| 17 |
private:
|
| 18 |
void timerCallback() override;
|
| 19 |
-
void
|
| 20 |
void showPluginMenu();
|
| 21 |
void loadPluginByIndex(int index);
|
| 22 |
|
| 23 |
PluginBridgeProcessor& processorRef;
|
| 24 |
|
| 25 |
-
// UI elements
|
| 26 |
juce::Label titleLabel;
|
| 27 |
juce::Label statusLabel;
|
| 28 |
juce::Label portLabel;
|
| 29 |
juce::Label pluginLabel;
|
| 30 |
juce::TextButton pluginButton{"Select Plugin..."};
|
| 31 |
|
| 32 |
-
// Scanned plugins (persists across editor open/close via static)
|
| 33 |
-
juce::KnownPluginList knownPlugins;
|
| 34 |
-
juce::AudioPluginFormatManager scanFormatManager;
|
| 35 |
-
bool scanComplete = false;
|
| 36 |
-
bool scanning = false;
|
| 37 |
-
|
| 38 |
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)
|
| 39 |
};
|
|
|
|
| 1 |
#pragma once
|
| 2 |
|
| 3 |
#include <juce_gui_basics/juce_gui_basics.h>
|
|
|
|
| 4 |
#include "PluginBridgeProcessor.h"
|
| 5 |
|
| 6 |
class PluginBridgeEditor : public juce::AudioProcessorEditor,
|
|
|
|
| 15 |
|
| 16 |
private:
|
| 17 |
void timerCallback() override;
|
| 18 |
+
void pluginButtonClicked();
|
| 19 |
void showPluginMenu();
|
| 20 |
void loadPluginByIndex(int index);
|
| 21 |
|
| 22 |
PluginBridgeProcessor& processorRef;
|
| 23 |
|
|
|
|
| 24 |
juce::Label titleLabel;
|
| 25 |
juce::Label statusLabel;
|
| 26 |
juce::Label portLabel;
|
| 27 |
juce::Label pluginLabel;
|
| 28 |
juce::TextButton pluginButton{"Select Plugin..."};
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)
|
| 31 |
};
|