Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
fixed editor crashing when calling CloseAll on close
Browse files Browse the repository at this point in the history
  • Loading branch information
maxijabase committed Oct 15, 2022
1 parent 128513a commit 5aec6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI/MainWindow/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,11 @@ private void CloseProgram(bool saveAll)

if (saveAll)
{
EditorReferences.ForEach(x => x.Close(true));
EditorReferences.ToList().ForEach(x => x.Close(true));
}
else
{
EditorReferences.ForEach(x => x.Close(false, false));
EditorReferences.ToList().ForEach(x => x.Close(false, false));
}

// Kill children process from "Server Start" feature
Expand Down

0 comments on commit 5aec6ee

Please sign in to comment.