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:
parent
f41a4b0173
commit
4b64f2c14d
1 changed files with 3 additions and 1 deletions
|
@ -6283,7 +6283,7 @@ namespace IDE
|
||||||
mRecentFileSelector.Prev();
|
mRecentFileSelector.Prev();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShowRecentFile(int idx, bool setFocus = true)
|
void ShowRecentFile(int idx, bool setFocus = true, bool checkIfExists = false)
|
||||||
{
|
{
|
||||||
if (idx >= mRecentlyDisplayedFiles.Count)
|
if (idx >= mRecentlyDisplayedFiles.Count)
|
||||||
return;
|
return;
|
||||||
|
@ -6294,6 +6294,8 @@ namespace IDE
|
||||||
ShowDisassemblyPanel();
|
ShowDisassemblyPanel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ((checkIfExists) && (!File.Exists(sourceFile)))
|
||||||
|
return;
|
||||||
ShowSourceFile(sourceFile, null, SourceShowType.ShowExisting, setFocus);
|
ShowSourceFile(sourceFile, null, SourceShowType.ShowExisting, setFocus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue