mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed issue detaching editdata when resetting ui
This commit is contained in:
parent
ae186433cc
commit
a2a97a8e5f
2 changed files with 11 additions and 1 deletions
|
@ -355,7 +355,7 @@ namespace IDE
|
|||
return .SimpleSource;
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
public void ClearEditData()
|
||||
{
|
||||
if (mEditData != null)
|
||||
{
|
||||
|
@ -365,6 +365,11 @@ namespace IDE
|
|||
}
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
ClearEditData();
|
||||
}
|
||||
|
||||
public override void Detach()
|
||||
{
|
||||
Dispose();
|
||||
|
|
|
@ -546,6 +546,11 @@ namespace IDE.ui
|
|||
|
||||
public ~this()
|
||||
{
|
||||
if (mProjectSource?.mEditData?.HasTextChanged() == true)
|
||||
{
|
||||
mProjectSource.ClearEditData();
|
||||
}
|
||||
|
||||
if (mInPostRemoveUpdatePanels)
|
||||
{
|
||||
//Debug.WriteLine("Removing sourceViewPanel from mPostRemoveUpdatePanel {0} in ~this ", this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue