Skip to content

Commit

Permalink
Improve Remember Recent Files performance
Browse files Browse the repository at this point in the history
Clean up SHAddToRecentDocs to obey flagUseSystemMRU.
FileLoad or FileSave will do that.
Fix issue #363.
  • Loading branch information
lifenjoiner authored and zufuliu committed Aug 28, 2021
1 parent 72c7c68 commit d6845ac
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Helpers.c
Expand Up @@ -2450,13 +2450,6 @@ BOOL MRU_AddFile(LPMRULIST pmru, LPCWSTR pszFile, BOOL bRelativePath, BOOL bUnex
pmru->pszItems[0] = StrDup(pszFile);
}

/* notepad2-mod custom code start */
// Needed to make Win7 jump lists work when NP2 is not explicitly associated
if (IsWin7AndAbove()) {
SHAddToRecentDocs(SHARD_PATHW, pszFile);
}
/* notepad2-mod custom code end */

return TRUE;
}

Expand Down

0 comments on commit d6845ac

Please sign in to comment.