mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Simplified some inter-module dependencies and exception-catching fallbacks
This commit is contained in:
parent
9b167ca5e1
commit
2a1234b6ac
16 changed files with 90 additions and 141 deletions
|
|
@ -690,31 +690,24 @@ public:
|
|||
JUCE_ASIO_LOG ("showing control panel");
|
||||
|
||||
bool done = false;
|
||||
insideControlPanelModalLoop = true;
|
||||
|
||||
JUCE_TRY
|
||||
const uint32 started = Time::getMillisecondCounter();
|
||||
|
||||
if (asioObject != nullptr)
|
||||
{
|
||||
// are there are devices that need to be closed before showing their control panel?
|
||||
// close();
|
||||
insideControlPanelModalLoop = true;
|
||||
asioObject->controlPanel();
|
||||
|
||||
const uint32 started = Time::getMillisecondCounter();
|
||||
const int spent = (int) Time::getMillisecondCounter() - (int) started;
|
||||
|
||||
if (asioObject != nullptr)
|
||||
JUCE_ASIO_LOG ("spent: " + String (spent));
|
||||
|
||||
if (spent > 300)
|
||||
{
|
||||
asioObject->controlPanel();
|
||||
|
||||
const int spent = (int) Time::getMillisecondCounter() - (int) started;
|
||||
|
||||
JUCE_ASIO_LOG ("spent: " + String (spent));
|
||||
|
||||
if (spent > 300)
|
||||
{
|
||||
shouldUsePreferredSize = true;
|
||||
done = true;
|
||||
}
|
||||
shouldUsePreferredSize = true;
|
||||
done = true;
|
||||
}
|
||||
}
|
||||
JUCE_CATCH_ALL
|
||||
|
||||
insideControlPanelModalLoop = false;
|
||||
return done;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue