RAM2118 commited on
Commit
ac5992d
·
verified ·
1 Parent(s): 75f7e51

Fix: GUI button toggles Open/Close — sends hide_gui when GUI is open, guaranteed to work"

Browse files
Files changed (1) hide show
  1. Source/Plugin/PluginBridgeEditor.h +3 -2
Source/Plugin/PluginBridgeEditor.h CHANGED
@@ -16,19 +16,20 @@ public:
16
  private:
17
  void timerCallback() override;
18
  void showPluginMenu();
 
19
 
20
  PluginBridgeProcessor& processorRef;
21
 
22
- // Status indicators
23
  juce::Label titleLabel;
24
  juce::Label mcpStatusLabel;
25
  juce::Label pluginStatusLabel;
26
  juce::Label connectionLabel;
27
 
28
- // Buttons
29
  juce::TextButton selectButton{"Select Plugin"};
30
  juce::TextButton guiButton{"Open GUI"};
31
  juce::TextButton reloadButton{"Reload"};
32
 
 
 
33
  JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)
34
  };
 
16
  private:
17
  void timerCallback() override;
18
  void showPluginMenu();
19
+ void toggleGui();
20
 
21
  PluginBridgeProcessor& processorRef;
22
 
 
23
  juce::Label titleLabel;
24
  juce::Label mcpStatusLabel;
25
  juce::Label pluginStatusLabel;
26
  juce::Label connectionLabel;
27
 
 
28
  juce::TextButton selectButton{"Select Plugin"};
29
  juce::TextButton guiButton{"Open GUI"};
30
  juce::TextButton reloadButton{"Reload"};
31
 
32
+ bool guiOpen = false;
33
+
34
  JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(PluginBridgeEditor)
35
  };