Skip to content

Commit

Permalink
Merge pull request #1132 from ONLYOFFICE/feature/fix-bug-66119
Browse files Browse the repository at this point in the history
[macos] fix bug 66119
  • Loading branch information
K0R0L authored Jan 29, 2024
2 parents 5a74b58 + 2c613c9 commit 78b8d62
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1904,9 +1904,14 @@ - (void)tabs:(ASCTabsControl *)control didAddTab:(ASCTabView *)tab {
}
case ASCTabActionOpenLocalRecentFile: {
NSInteger docId = [tab.params[@"fileId"] intValue];
// NSString * filePath = tab.params[@"path"];

[cefView openRecentFileWithId:docId];
if ( !(docId < 0) )
[cefView openRecentFileWithId:docId];
else {
NSString * filePath = tab.params[@"path"];
if ( filePath && filePath.length )
[cefView loadWithUrl:filePath];
}

[[AnalyticsHelper sharedInstance] recordCachedEventWithCategory:ASCAnalyticsCategoryApplication
action:@"Open local file"
Expand Down

0 comments on commit 78b8d62

Please sign in to comment.