Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 1f035d5

Browse files
committed
Remove tab disposal
The tab shouldn't dispose the content, as it can be reparented on mode changes Fixes VSTS #1002168 - [VS for Mac]The split tab is empty in Xamarin.Forms project
1 parent f8e47ae commit 1f035d5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Shell/GtkShellDocumentViewContainerTabs.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ sealed class GtkShellDocumentTab : Tab
102102
public GtkShellDocumentTab (Tabstrip parent, string label) : base (parent, label)
103103
{
104104
}
105-
106-
protected override void OnDispose ()
107-
{
108-
if (Tag is IShellDocumentViewItem disposable)
109-
disposable.Dispose ();
110-
111-
base.OnDispose ();
112-
}
113105
}
114106

115107
internal static void UpdateTab (Tab tab, string label, Xwt.Drawing.Image icon, string accessibilityDescription)

0 commit comments

Comments
 (0)