Fix OS X plugin list window not defined

This commit is contained in:
Rolando Islas
2016-01-01 19:39:00 -07:00
parent 2d1d98e22f
commit 9d3d8a05a9
2 changed files with 4 additions and 5 deletions
+4 -3
View File
@@ -14,7 +14,6 @@
#include "Windows.h" #include "Windows.h"
#endif #endif
#if !JUCE_MAC
class IconMenu::PluginListWindow : public DocumentWindow class IconMenu::PluginListWindow : public DocumentWindow
{ {
public: public:
@@ -49,13 +48,16 @@ public:
void closeButtonPressed() void closeButtonPressed()
{ {
owner.removePluginsLackingInputOutput();
#if JUCE_MAC
Process::setDockIconVisible(false);
#endif
owner.pluginListWindow = nullptr; owner.pluginListWindow = nullptr;
} }
private: private:
IconMenu& owner; IconMenu& owner;
}; };
#endif
IconMenu::IconMenu() IconMenu::IconMenu()
{ {
@@ -375,7 +377,6 @@ void IconMenu::reloadPlugins()
if (pluginListWindow == nullptr) if (pluginListWindow == nullptr)
pluginListWindow = new PluginListWindow(*this, formatManager); pluginListWindow = new PluginListWindow(*this, formatManager);
pluginListWindow->toFront(true); pluginListWindow->toFront(true);
removePluginsLackingInputOutput();
} }
void IconMenu::removePluginsLackingInputOutput() void IconMenu::removePluginsLackingInputOutput()
-2
View File
@@ -48,10 +48,8 @@ private:
int x, y; int x, y;
#endif #endif
#if !JUCE_MAC
class PluginListWindow; class PluginListWindow;
ScopedPointer<PluginListWindow> pluginListWindow; ScopedPointer<PluginListWindow> pluginListWindow;
#endif
}; };
#endif /* IconMenu_hpp */ #endif /* IconMenu_hpp */