gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 81e3e0db789099dfe3d59ac91df863ed5c6d75f9
parent 9e41c4f2932e04c9d0258fb7248bb8e5b1890a2e
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 27 Oct 2024 01:41:22 +0200

add a small delay before displaying the rom not found warning to ensure it isn't opened behind the editor (or not at all)

Diffstat:
Msource/jucePluginLib/processor.cpp | 21++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/source/jucePluginLib/processor.cpp b/source/jucePluginLib/processor.cpp @@ -128,15 +128,18 @@ namespace pluginLib msg += "\n\n" + std::string("[Debug] Host ") + host.toStdString() + "\n\n"; #endif } - juce::NativeMessageBox::showMessageBoxAsync(juce::AlertWindow::WarningIcon, - "Device Initialization failed", msg, nullptr, - juce::ModalCallbackFunction::create([this](int) - { - const auto path = juce::File(getPublicRomFolder()); - (void)path.createDirectory(); - path.revealToUser(); - }) - ); + juce::Timer::callAfterDelay(2000, [msg] + { + juce::NativeMessageBox::showMessageBoxAsync(juce::AlertWindow::WarningIcon, + "Device Initialization failed", msg, nullptr, + juce::ModalCallbackFunction::create([this](int) + { + const auto path = juce::File(getPublicRomFolder()); + (void)path.createDirectory(); + path.revealToUser(); + }) + ); + }); } }