mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Showing last-used file when closing
This commit is contained in:
parent
dedaf989a6
commit
3bc83157e7
1 changed files with 9 additions and 0 deletions
|
@ -6011,6 +6011,9 @@ namespace IDE
|
||||||
|
|
||||||
void ShowRecentFile(int idx, bool setFocus = true)
|
void ShowRecentFile(int idx, bool setFocus = true)
|
||||||
{
|
{
|
||||||
|
if (idx >= mRecentlyDisplayedFiles.Count)
|
||||||
|
return;
|
||||||
|
|
||||||
String sourceFile = mRecentlyDisplayedFiles[idx];
|
String sourceFile = mRecentlyDisplayedFiles[idx];
|
||||||
if (sourceFile == DisassemblyPanel.sPanelName)
|
if (sourceFile == DisassemblyPanel.sPanelName)
|
||||||
{
|
{
|
||||||
|
@ -6183,6 +6186,12 @@ namespace IDE
|
||||||
UpdateRecentDisplayedFilesMenuItems();
|
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;
|
TabbedView.TabButton nextTab = null;
|
||||||
bool foundRemovedTab = false;
|
bool foundRemovedTab = false;
|
||||||
// Select the previous tab or the next one (if this is the first)
|
// Select the previous tab or the next one (if this is the first)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue