Преглед изворни кода

remove table event handlers in treetablesource

Shlomi Assaf пре 2 година
родитељ
комит
01c6350b67
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      Terminal.Gui/Views/TableView/TreeTableSource.cs

+ 3 - 1
Terminal.Gui/Views/TableView/TreeTableSource.cs

@@ -68,6 +68,8 @@ public class TreeTableSource<T> : IEnumerableTableSource<T>, IDisposable where T
 	/// <inheritdoc/>
 	public void Dispose ()
 	{
+		_tableView.KeyPress -= Table_KeyPress;
+		_tableView.MouseClick -= Table_MouseClick;
 		_tree.Dispose ();
 	}
 
@@ -200,4 +202,4 @@ public class TreeTableSource<T> : IEnumerableTableSource<T>, IDisposable where T
 	{
 		return _tree.BuildLineMap ().Select (b => b.Model);
 	}
-}
+}