fix: send gui_ready notification after showGui — use callback from HelperPluginHost to IPC
Browse filesHelperPluginHost now has onGuiCreated callback. HelperIPC sets it.
When showGui() finishes creating the editor + registering the layer,
it calls onGuiCreated which triggers sendGuiReady with port name + size.
Source/Helper/HelperPluginHost.h
CHANGED
|
@@ -59,7 +59,8 @@ public:
|
|
| 59 |
bool setStateBase64(const juce::String& base64State);
|
| 60 |
void configure(double sampleRate, int blockSize, int channels);
|
| 61 |
|
| 62 |
-
//
|
|
|
|
| 63 |
std::function<void(int w, int h)> onGuiResized;
|
| 64 |
|
| 65 |
private:
|
|
@@ -81,7 +82,6 @@ private:
|
|
| 81 |
int currentChannels = 2;
|
| 82 |
|
| 83 |
// GUI
|
| 84 |
-
std::unique_ptr<juce::Component> guiContainer;
|
| 85 |
int guiWidth = 0;
|
| 86 |
int guiHeight = 0;
|
| 87 |
juce::String layerPortName;
|
|
|
|
| 59 |
bool setStateBase64(const juce::String& base64State);
|
| 60 |
void configure(double sampleRate, int blockSize, int channels);
|
| 61 |
|
| 62 |
+
// Callbacks
|
| 63 |
+
std::function<void(const juce::String& portName, int width, int height)> onGuiCreated;
|
| 64 |
std::function<void(int w, int h)> onGuiResized;
|
| 65 |
|
| 66 |
private:
|
|
|
|
| 82 |
int currentChannels = 2;
|
| 83 |
|
| 84 |
// GUI
|
|
|
|
| 85 |
int guiWidth = 0;
|
| 86 |
int guiHeight = 0;
|
| 87 |
juce::String layerPortName;
|