use instance for global events

This commit is contained in:
Matt Parker
2025-09-30 20:34:29 +10:00
parent eb88897a2a
commit 41f25ec772
11 changed files with 38 additions and 34 deletions

View File

@@ -136,8 +136,9 @@
protected override async Task OnInitializedAsync()
{
GlobalEvents.Instance = new GlobalEvents();
await LoadSolutionFromInteractivePicker(AppState.IdeSettings.AutoOpenLastSolution);
GlobalEvents.StartedRunningProject += OnStartedRunningProject;
GlobalEvents.Instance.StartedRunningProject += OnStartedRunningProject;
}
private void OnProblemSelected(SharpIdeFile file)