Skip to content

Commit

Permalink
EditViewModelでの要素の保存をマルチスレッドにした
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Jan 18, 2024
1 parent 8bd497f commit 8b74b5d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Beutl/ViewModels/EditViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,7 @@ private sealed class KnownCommandsImpl(Scene scene, EditViewModel viewModel) : I
public ValueTask<bool> OnSave()
{
scene.Save(scene.FileName);
foreach (Element element in scene.Children)
{
element.Save(element.FileName);
}
Parallel.ForEach(scene.Children, item => item.Save(item.FileName));
viewModel.SaveState();

return ValueTask.FromResult(true);
Expand Down

0 comments on commit 8b74b5d

Please sign in to comment.