mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
FileChooser: Hide chooser when it leaves scope on Windows
This commit is contained in:
parent
e813531d9b
commit
45409bb4e6
9 changed files with 105 additions and 95 deletions
|
|
@ -256,9 +256,9 @@ bool FileChooser::isPlatformDialogAvailable()
|
|||
#endif
|
||||
}
|
||||
|
||||
FileChooser::Pimpl* FileChooser::showPlatformDialog (FileChooser& owner, int flags, FilePreviewComponent*)
|
||||
std::unique_ptr<FileChooser::Pimpl> FileChooser::showPlatformDialog (FileChooser& owner, int flags, FilePreviewComponent*)
|
||||
{
|
||||
return new Native (owner, flags);
|
||||
return std::make_unique<Native> (owner, flags);
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue