mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 01:07:58 +01:00
The current view is called once instead of being called for each SubView added.
This commit is contained in:
@@ -951,7 +951,7 @@ namespace Terminal.Gui {
|
||||
/// <param name="view">The subview being added.</param>
|
||||
public virtual void OnAdding (View view)
|
||||
{
|
||||
Adding?.Invoke (view);
|
||||
view.Adding?.Invoke (this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -960,7 +960,7 @@ namespace Terminal.Gui {
|
||||
/// <param name="view">The subview being removed.</param>
|
||||
public virtual void OnRemoving (View view)
|
||||
{
|
||||
Removing?.Invoke (view);
|
||||
view.Removing?.Invoke (this);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
Reference in New Issue
Block a user