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:
copilot-swe-agent[bot]
2025-10-26 20:59:26 +00:00
parent 858e635439
commit fa27fb28c2
2 changed files with 2 additions and 2 deletions

View File

@@ -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 ()

View File

@@ -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)
{