@@ -639,17 +639,14 @@ class HostAudioProcessorEditor final : public AudioProcessorEditor
639639 )
640640 , scopedCallback(owner.pluginChanged, [this ] { pluginChanged (); })
641641 {
642- currentScaleFactor =
643- juce::Desktop::getInstance ().getDisplays ().getDisplayForRect (getLocalBounds ())->dpi / atk::DPI_NORMAL;
644-
645642 setSize (500 , 500 );
646643 setResizable (false , false );
647- addAndMakeVisible (closeButton);
644+ // addAndMakeVisible(closeButton);
648645 addAndMakeVisible (loader);
649646
650647 hostProcessor.pluginChanged ();
651648
652- closeButton.onClick = [this ] { clearPlugin (); };
649+ // closeButton.onClick = [this] { clearPlugin(); };
653650 }
654651
655652 void parentSizeChanged () override
@@ -663,7 +660,7 @@ class HostAudioProcessorEditor final : public AudioProcessorEditor
663660
664661 void resized () override
665662 {
666- closeButton.setBounds (getLocalBounds ().withSizeKeepingCentre (200 , buttonHeight));
663+ // closeButton.setBounds(getLocalBounds().withSizeKeepingCentre(200, buttonHeight));
667664 loader.setBounds (getLocalBounds ());
668665 }
669666
@@ -698,7 +695,7 @@ class HostAudioProcessorEditor final : public AudioProcessorEditor
698695 void pluginChanged ()
699696 {
700697 loader.setVisible (!hostProcessor.isPluginLoaded ());
701- closeButton.setVisible (hostProcessor.isPluginLoaded ());
698+ // closeButton.setVisible(hostProcessor.isPluginLoaded());
702699
703700 if (hostProcessor.isPluginLoaded ())
704701 {
@@ -758,7 +755,7 @@ class HostAudioProcessorEditor final : public AudioProcessorEditor
758755 std::unique_ptr<Component> editor;
759756 PluginEditorComponent* currentEditorComponent = nullptr ;
760757 ScopedValueSetter<std::function<void ()>> scopedCallback;
761- TextButton closeButton{" Close Plugin" };
758+ // TextButton closeButton{"Close Plugin"};
762759 float currentScaleFactor = 1 .0f ;
763760
764761 juce::SharedResourcePointer<atk::LookAndFeel> lookAndFeel;
0 commit comments