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

FileChoosers: Added a file-chooser save mode where the caller already supplies a temporary file which should be saved. JUCE will automatically move the temporary file to the location selected by the user

This commit is contained in:
hogliux 2017-11-22 14:03:42 +00:00
parent fd6b7de444
commit df8fc9b910
8 changed files with 86 additions and 37 deletions

View file

@ -535,7 +535,7 @@ public:
[safeThis] (int)
{
if (safeThis != nullptr)
safeThis->owner.finished (safeThis->nativeFileChooser->results);
safeThis->owner.finished (safeThis->nativeFileChooser->results, true);
}));
nativeFileChooser->open (true);
@ -548,7 +548,7 @@ public:
exitModalState (nativeFileChooser->results.size() > 0 ? 1 : 0);
nativeFileChooser->cancel();
owner.finished (nativeFileChooser->results);
owner.finished (nativeFileChooser->results, true);
}
private: