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

Fixed issues closing tabs

This commit is contained in:
Brian Fiete 2020-05-17 06:44:23 -07:00
parent 79ae4e3eb2
commit 6976de31af
2 changed files with 4 additions and 1 deletions

View file

@ -235,7 +235,11 @@ namespace Beefy.widgets
public void Simplify()
{
if ((mDockedWidgets.Count == 0) && (mParentDockingFrame != null))
{
mParentDockingFrame.RemoveWidget(this);
mParentDockingFrame.mDockedWidgets.Remove(this);
BFApp.sApp.DeferDelete(this);
}
else if ((mDockedWidgets.Count == 1) && (mParentDockingFrame != null))
{
// Just a single object, remove ourselves from the frame

View file

@ -6165,7 +6165,6 @@ namespace IDE
}
});
Debug.Assert(tabbedView != null);
if (tabbedView == null)
return;