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

AlertWindow: Fix result codes when displaying native dialogs through the AlertWindow APIs

This commit is contained in:
reuk 2023-04-04 17:26:29 +01:00
parent 9d50ab6c59
commit ad094cd883
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
2 changed files with 2 additions and 12 deletions

View file

@ -645,17 +645,7 @@ static int showMaybeAsync (const MessageBoxOptions& options,
ModalComponentManager::Callback* callbackIn)
{
if (LookAndFeel::getDefaultLookAndFeel().isUsingNativeAlertWindows())
{
#if JUCE_MODAL_LOOPS_PERMITTED
if (callbackIn == nullptr)
return NativeMessageBox::show (options);
#endif
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
NativeMessageBox::showAsync (options, callbackIn);
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
return false;
}
return showNativeBoxUnmanaged (options, callbackIn, ResultCodeMappingMode::alertWindow);
return showAlertWindowUnmanaged (options, callbackIn);
}