Merge pull request #2 from enzuru/fix-editor-preference

Fix broken editor preference
This commit is contained in:
Gregory Casamento 2020-04-20 01:50:15 -04:00 committed by GitHub
commit acf38c1b62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -442,13 +442,15 @@ NSString *PCBrowserDidSetPathNotification = @"PCBrowserDidSetPathNotification";
if ([self nameOfSelectedFile] != nil)
{
BOOL foundFile = NO;
BOOL foundApp = NO;
// PCLogInfo(self, @"{doubleClick} filePath: %@", filePath);*/
workspace = [NSWorkspace sharedWorkspace];
foundApp = [workspace getInfoForFile:filePath
foundFile = [workspace getInfoForFile:filePath
application:&appName
type:&type];
foundApp = foundFile && appName;
// NSLog (@"Open file: %@ with app: %@", filePath, appName);
// If 'Editor' role was set in .GNUstepExtPrefs application