1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

FileChooser: Ensure macOS FileChooserComponent shows when FileChooser is reopened

If the preview is not removed from the desktop, the FileChooser will try to reuse
the same ComponentPeer the next time the preview component is used.
This commit is contained in:
reuk 2020-10-19 17:36:51 +01:00
parent 36664cc487
commit 6fd0baa759

View file

@ -131,6 +131,10 @@ public:
~Native() override
{
exitModalState (0);
if (preview != nullptr)
preview->removeFromDesktop();
removeFromDesktop();
if (panel != nil)