mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +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()
|
||||
{
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue