Skip to content

Commit 8e1fb45

Browse files
committed
Fix file URL assembling when from preferences
1 parent cba8516 commit 8e1fb45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MacDown/Code/Application/MPMainController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ - (void)openPendingFiles
212212
NSDocumentController *c = [NSDocumentController sharedDocumentController];
213213
for (NSString *path in self.prefereces.filesToOpenOnNextLaunch)
214214
{
215-
NSURL *url = [NSURL URLWithString:path];
215+
NSURL *url = [NSURL fileURLWithPath:path];
216216
if ([url checkResourceIsReachableAndReturnError:NULL])
217217
{
218218
[c openDocumentWithContentsOfURL:url display:YES

0 commit comments

Comments
 (0)