mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
Added a workaround for WaveLab invisible editor bug
This commit is contained in:
parent
2f5b8e5f9f
commit
284bc706c9
1 changed files with 14 additions and 1 deletions
|
|
@ -705,7 +705,7 @@ private:
|
|||
#endif
|
||||
|
||||
//==============================================================================
|
||||
class JuceVST3Editor : public Vst::EditorView
|
||||
class JuceVST3Editor : public Vst::EditorView, private Timer
|
||||
{
|
||||
public:
|
||||
JuceVST3Editor (JuceVST3EditController& ec, AudioProcessor& p)
|
||||
|
|
@ -757,6 +757,10 @@ private:
|
|||
systemWindow = parent;
|
||||
attachedToParent();
|
||||
|
||||
// Life's too short to faff around with wave lab
|
||||
if (getHostType().isWavelab())
|
||||
startTimer (200);
|
||||
|
||||
return kResultTrue;
|
||||
}
|
||||
|
||||
|
|
@ -843,6 +847,15 @@ private:
|
|||
}
|
||||
|
||||
private:
|
||||
void timerCallback() override
|
||||
{
|
||||
stopTimer ();
|
||||
|
||||
ViewRect rect;
|
||||
getSize (&rect);
|
||||
onSize (&rect);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
class ContentWrapperComponent : public Component
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue