mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Added a bit of extra functionality to WindowsRegistry. Linux: couple of fixes for fullscreen, file chooser, and a bit of tidying up. Internal refactoring in NSViewComponent.
This commit is contained in:
parent
b888a72db9
commit
49870de020
7 changed files with 157 additions and 149 deletions
|
|
@ -58,16 +58,20 @@ void FileChooser::showPlatformDialog (Array<File>& results,
|
|||
ChildProcess child;
|
||||
if (child.start (command))
|
||||
{
|
||||
const String result (child.readAllProcessOutput());
|
||||
StringArray tokens;
|
||||
const String result (child.readAllProcessOutput().trim());
|
||||
|
||||
if (selectMultipleFiles)
|
||||
tokens.addTokens (result, separator, "\"");
|
||||
else
|
||||
tokens.add (result);
|
||||
if (result.isNotEmpty())
|
||||
{
|
||||
StringArray tokens;
|
||||
|
||||
for (int i = 0; i < tokens.size(); i++)
|
||||
results.add (File (tokens[i]));
|
||||
if (selectMultipleFiles)
|
||||
tokens.addTokens (result, separator, "\"");
|
||||
else
|
||||
tokens.add (result);
|
||||
|
||||
for (int i = 0; i < tokens.size(); i++)
|
||||
results.add (File (tokens[i]));
|
||||
}
|
||||
|
||||
child.waitForProcessToFinish (60 * 1000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue