1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fix close of inactive IDE tab without closing pane

When you close an inactive IDE tab, the 'nextTab' is null instead of the
already active one. This then results in the entire pane closing even
with tabs remaining. Ensuring nextTab is always valid keeps the pane open.

This may fix issue #619 as the behavior described is similar.
This commit is contained in:
Joseph Battelle 2021-01-31 20:31:10 -08:00
parent 1519a60104
commit 66e8ab8823

View file

@ -6588,6 +6588,9 @@ namespace IDE
nextTab = checkTab;
});
}
else {
nextTab = tabbedView.GetActiveTab();
}
tabbedView.RemoveTab(tabButton);
if (nextTab != null)