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

Add missing AlertWindow::showNativeDialogBox() implementation that was removed in 551d7b9c

This commit is contained in:
ed 2021-08-09 08:51:58 +01:00
parent 455b8baf7e
commit 2db1bbdc0f

View file

@ -669,6 +669,17 @@ int AlertWindow::show (const MessageBoxOptions& options)
AlertWindowInfo info (options, nullptr, Async::no);
return info.invoke();
}
bool AlertWindow::showNativeDialogBox (const String& title,
const String& bodyText,
bool isOkCancel)
{
if (isOkCancel)
return NativeMessageBox::showOkCancelBox (AlertWindow::NoIcon, title, bodyText);
NativeMessageBox::showMessageBox (AlertWindow::NoIcon, title, bodyText);
return true;
}
#endif
void AlertWindow::showAsync (const MessageBoxOptions& options, ModalComponentManager::Callback* callback)