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:
parent
455b8baf7e
commit
2db1bbdc0f
1 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue