Fix OS X plugin list window not defined
This commit is contained in:
+4
-3
@@ -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()
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user