Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Commit

Permalink
Fix "View Logs" button.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Mar 6, 2020
1 parent efed768 commit d0316df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OpenRA.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ - (void)showCrashPrompt
if (answer == NSAlertFirstButtonReturn)
{
NSString *logDir = [@"~/Library/Application Support/OpenRA/Logs/" stringByExpandingTildeInPath];
NSString *logFile = [logDir stringByAppendingPathComponent: @"exception.log"];
[[NSWorkspace sharedWorkspace] selectFile: logFile inFileViewerRootedAtPath: logDir];
[[NSWorkspace sharedWorkspace] openFile: logDir withApplication:@"Finder"];
}
else if (answer == NSAlertSecondButtonReturn)
{
Expand Down

0 comments on commit d0316df

Please sign in to comment.