mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 01:38:01 +01:00
Address code review feedback
- Update RaiseInitializedChanged documentation to clarify it delegates to static event - Pass ApplicationImpl.Instance as sender in legacy Init path instead of null for consistency - All tests still passing Co-authored-by: tig <585482+tig@users.noreply.github.com>
This commit is contained in:
@@ -158,7 +158,7 @@ public static partial class Application // Lifecycle (Init/Shutdown)
|
||||
bool init = Initialized = true;
|
||||
|
||||
// Raise InitializedChanged event
|
||||
OnInitializedChanged (null, new (init));
|
||||
OnInitializedChanged (ApplicationImpl.Instance, new (init));
|
||||
}
|
||||
|
||||
internal static void SubscribeDriverEvents ()
|
||||
|
||||
@@ -205,7 +205,7 @@ public class ApplicationImpl : IApplication
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Internal helper to raise InitializedChanged event. Used by legacy Init path and modern Init path.
|
||||
/// Internal helper to raise InitializedChanged static event. Used by both legacy and modern Init paths.
|
||||
/// </summary>
|
||||
internal void RaiseInitializedChanged (bool initialized)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user