1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

ScopedMessageBox: Replace old AlertWindow uses with new API

This commit is contained in:
reuk 2023-02-22 20:54:45 +00:00
parent 79ed81c24a
commit 39a731de46
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
55 changed files with 893 additions and 677 deletions

View file

@ -687,19 +687,24 @@ void EnabledModulesList::addModuleOfferingToCopy (const File& f, bool isFromUser
if (! m.isValid())
{
AlertWindow::showMessageBoxAsync (MessageBoxIconType::InfoIcon,
"Add Module", "This wasn't a valid module folder!");
auto options = MessageBoxOptions::makeOptionsOk (MessageBoxIconType::InfoIcon,
"Add Module",
"This wasn't a valid module folder!");
messageBox = AlertWindow::showScopedAsync (options, nullptr);
return;
}
if (isModuleEnabled (m.getID()))
{
AlertWindow::showMessageBoxAsync (MessageBoxIconType::InfoIcon,
"Add Module", "The project already contains this module!");
auto options = MessageBoxOptions::makeOptionsOk (MessageBoxIconType::InfoIcon,
"Add Module",
"The project already contains this module!");
messageBox = AlertWindow::showScopedAsync (options, nullptr);
return;
}
addModule (m.getModuleFolder(), areMostModulesCopiedLocally(),
addModule (m.getModuleFolder(),
areMostModulesCopiedLocally(),
isFromUserSpecifiedFolder ? false : areMostModulesUsingGlobalPath());
}