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:
parent
36664cc487
commit
6fd0baa759
1 changed files with 4 additions and 0 deletions
|
|
@ -131,6 +131,10 @@ public:
|
|||
~Native() override
|
||||
{
|
||||
exitModalState (0);
|
||||
|
||||
if (preview != nullptr)
|
||||
preview->removeFromDesktop();
|
||||
|
||||
removeFromDesktop();
|
||||
|
||||
if (panel != nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue