From 3eeb1d8b5261dd866fe50d0a242dddabbf25ca4c Mon Sep 17 00:00:00 2001 From: BDisp Date: Thu, 25 Jun 2020 14:24:50 +0100 Subject: [PATCH] The current view is called once instead of being called for each SubView added. --- Terminal.Gui/Core/View.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Terminal.Gui/Core/View.cs b/Terminal.Gui/Core/View.cs index 8fc7a436e..14ccde46c 100644 --- a/Terminal.Gui/Core/View.cs +++ b/Terminal.Gui/Core/View.cs @@ -951,7 +951,7 @@ namespace Terminal.Gui { /// The subview being added. public virtual void OnAdding (View view) { - Adding?.Invoke (view); + view.Adding?.Invoke (this); } /// @@ -960,7 +960,7 @@ namespace Terminal.Gui { /// The subview being removed. public virtual void OnRemoving (View view) { - Removing?.Invoke (view); + view.Removing?.Invoke (this); } ///