RAM2118 commited on
Commit
242769f
·
verified ·
1 Parent(s): c151d02

fix: send gui_ready notification after showGui — use callback from HelperPluginHost to IPC

Browse files

HelperPluginHost 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.

Files changed (1) hide show
  1. Source/Helper/HelperPluginHost.h +2 -2
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
- // Callback for resize
 
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;