mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 14:54:09 +02:00
Fixed issues closing tabs
This commit is contained in:
parent
79ae4e3eb2
commit
6976de31af
2 changed files with 4 additions and 1 deletions
|
@ -235,7 +235,11 @@ namespace Beefy.widgets
|
||||||
public void Simplify()
|
public void Simplify()
|
||||||
{
|
{
|
||||||
if ((mDockedWidgets.Count == 0) && (mParentDockingFrame != null))
|
if ((mDockedWidgets.Count == 0) && (mParentDockingFrame != null))
|
||||||
|
{
|
||||||
mParentDockingFrame.RemoveWidget(this);
|
mParentDockingFrame.RemoveWidget(this);
|
||||||
|
mParentDockingFrame.mDockedWidgets.Remove(this);
|
||||||
|
BFApp.sApp.DeferDelete(this);
|
||||||
|
}
|
||||||
else if ((mDockedWidgets.Count == 1) && (mParentDockingFrame != null))
|
else if ((mDockedWidgets.Count == 1) && (mParentDockingFrame != null))
|
||||||
{
|
{
|
||||||
// Just a single object, remove ourselves from the frame
|
// Just a single object, remove ourselves from the frame
|
||||||
|
|
|
@ -6165,7 +6165,6 @@ namespace IDE
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Debug.Assert(tabbedView != null);
|
|
||||||
if (tabbedView == null)
|
if (tabbedView == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue