1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed show-recent-on-close issue with renamed files

This commit is contained in:
Brian Fiete 2020-09-25 09:39:50 -07:00
parent f41a4b0173
commit 4b64f2c14d

View file

@ -6283,7 +6283,7 @@ namespace IDE
mRecentFileSelector.Prev();
}
void ShowRecentFile(int idx, bool setFocus = true)
void ShowRecentFile(int idx, bool setFocus = true, bool checkIfExists = false)
{
if (idx >= mRecentlyDisplayedFiles.Count)
return;
@ -6294,6 +6294,8 @@ namespace IDE
ShowDisassemblyPanel();
return;
}
if ((checkIfExists) && (!File.Exists(sourceFile)))
return;
ShowSourceFile(sourceFile, null, SourceShowType.ShowExisting, setFocus);
}