Fix crash: Editor is now thin — just reads scan state from Processor, no threads
Browse files12344568 unmodified lines15161719181920212223252425262728293233343536373031#pragma once
#include <juce_gui_basics/juce_gui_basics.h>#include <juce_audio_processors/juce_audio_processors.h>#include "PluginBridgeProcessor.h"
class PluginBridgeEditor : public juce::AudioProcessorEditor,8 unmodified lines
private: void timerCallback() override; void scanAndShowMenu(); void pluginButtonClicked(); void showPluginMenu(); void loadPluginByIndex(int index);
PluginBridgeProcessor& processorRef;
// UI elements juce::Label titleLabel; juce::Label statusLabel; juce::Label portLabel; juce::Label pluginLabel; juce::TextButton pluginButton{"Select Plugin..."};
// Scanned plugins (persists across editor open/close via static) juce::KnownPluginList knownPlugins; juce::AudioPluginFormatManager scanFormatManager; bool scanComplete = false; bool scanning = false;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)};Source/PluginBridgeEditor.h+1-9