mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ScopedMessageBox: Replace old AlertWindow uses with new API
This commit is contained in:
parent
79ed81c24a
commit
39a731de46
55 changed files with 893 additions and 677 deletions
|
|
@ -100,9 +100,10 @@ void PluginGraph::addPluginCallback (std::unique_ptr<AudioPluginInstance> instan
|
|||
{
|
||||
if (instance == nullptr)
|
||||
{
|
||||
AlertWindow::showMessageBoxAsync (MessageBoxIconType::WarningIcon,
|
||||
TRANS("Couldn't create plugin"),
|
||||
error);
|
||||
auto options = MessageBoxOptions::makeOptionsOk (MessageBoxIconType::WarningIcon,
|
||||
TRANS ("Couldn't create plugin"),
|
||||
error);
|
||||
messageBox = AlertWindow::showScopedAsync (options, nullptr);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ private:
|
|||
AudioPluginFormatManager& formatManager;
|
||||
KnownPluginList& knownPlugins;
|
||||
OwnedArray<PluginWindow> activePluginWindows;
|
||||
ScopedMessageBox messageBox;
|
||||
|
||||
NodeID lastUID;
|
||||
NodeID getNextUID() noexcept;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue