2
0
Fork 0

Update PluginEditor.cpp

Fixes macOS file dialog focus issue on ProTools
This commit is contained in:
George Reales 2021-10-31 12:01:02 +01:00
parent d79cea31f1
commit 3b106ab404

View file

@ -50,15 +50,15 @@ ObxdAudioProcessorEditor::ObxdAudioProcessorEditor (ObxdAudioProcessor& ownerFil
getTopLevelComponent()->addKeyListener (commandManager.getKeyMappings()); getTopLevelComponent()->addKeyListener (commandManager.getKeyMappings());
//Timer::callAfterDelay (100, [this] { this->grabKeyboardFocus(); }); // ensure that key presses are sent to the KeyPressTarget object //Timer::callAfterDelay (100, [this] { this->grabKeyboardFocus(); }); // ensure that key presses are sent to the KeyPressTarget object
if (PluginHostType().isProTools()) { } else { startTimer(100); }; // Fix ProTools file dialog focus issues
startTimer(100); // This will fix the issue //startTimer(100); // This will fix the issue
DBG("W: " <<getWidth() << " H:" << getHeight()); DBG("W: " <<getWidth() << " H:" << getHeight());
loadSkin (processor); loadSkin (processor);
updateFromHost(); updateFromHost();
switch(processor.gui_size) switch(processor.gui_size)