[macOS] Fixed bug 34729

This commit is contained in:
Alexander Yuzhin
2017-04-10 16:03:43 +03:00
parent e299a778a1
commit 9b4bab5014
2 changed files with 4 additions and 4 deletions

View File

@ -742,7 +742,7 @@
openPanel.allowsMultipleSelection = NO;
openPanel.canChooseFiles = YES;
openPanel.allowedFileTypes = filter;
openPanel.directoryURL = [NSURL URLWithString:directory];
openPanel.directoryURL = [NSURL fileURLWithPath:directory];
[openPanel beginSheetModalForWindow:[NSApp mainWindow] completionHandler:^(NSInteger result){
[openPanel orderOut:self];
@ -775,7 +775,7 @@
openPanel.allowsMultipleSelection = NO;
openPanel.canChooseFiles = YES;
openPanel.allowedFileTypes = [ASCConstants images];
openPanel.directoryURL = [NSURL URLWithString:directory];
openPanel.directoryURL = [NSURL fileURLWithPath:directory];
[openPanel beginSheetModalForWindow:[NSApp mainWindow] completionHandler:^(NSInteger result){
[openPanel orderOut:self];

View File

@ -238,11 +238,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.2.2</string>
<string>4.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>139</string>
<string>153</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>