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

Showing last-used file when closing

This commit is contained in:
Brian Fiete 2020-05-05 07:32:32 -07:00
parent dedaf989a6
commit 3bc83157e7

View file

@ -6011,6 +6011,9 @@ namespace IDE
void ShowRecentFile(int idx, bool setFocus = true)
{
if (idx >= mRecentlyDisplayedFiles.Count)
return;
String sourceFile = mRecentlyDisplayedFiles[idx];
if (sourceFile == DisassemblyPanel.sPanelName)
{
@ -6183,6 +6186,12 @@ namespace IDE
UpdateRecentDisplayedFilesMenuItems();
}
if (tabButton.mIsActive)
{
// If this succeeds then tabbUtton.mIsActive will be false, otherwise we do the 'nextTab' logic below
ShowRecentFile(0);
}
TabbedView.TabButton nextTab = null;
bool foundRemovedTab = false;
// Select the previous tab or the next one (if this is the first)