diff --git a/Source/IconMenu.cpp b/Source/IconMenu.cpp index 9769d73..25ac00f 100644 --- a/Source/IconMenu.cpp +++ b/Source/IconMenu.cpp @@ -14,7 +14,6 @@ #include "Windows.h" #endif -#if !JUCE_MAC class IconMenu::PluginListWindow : public DocumentWindow { public: @@ -49,13 +48,16 @@ public: void closeButtonPressed() { + owner.removePluginsLackingInputOutput(); + #if JUCE_MAC + Process::setDockIconVisible(false); + #endif owner.pluginListWindow = nullptr; } private: IconMenu& owner; }; -#endif IconMenu::IconMenu() { @@ -375,7 +377,6 @@ void IconMenu::reloadPlugins() if (pluginListWindow == nullptr) pluginListWindow = new PluginListWindow(*this, formatManager); pluginListWindow->toFront(true); - removePluginsLackingInputOutput(); } void IconMenu::removePluginsLackingInputOutput() diff --git a/Source/IconMenu.hpp b/Source/IconMenu.hpp index fd9bfbb..ada8d31 100644 --- a/Source/IconMenu.hpp +++ b/Source/IconMenu.hpp @@ -48,10 +48,8 @@ private: int x, y; #endif - #if !JUCE_MAC class PluginListWindow; ScopedPointer pluginListWindow; - #endif }; #endif /* IconMenu_hpp */