Skip to content

Commit

Permalink
修复标脏调用不在渲染状态中的Task的Stop方法
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuYunPlayer committed May 19, 2024
1 parent 00a8ee5 commit 205ad6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TuneLab/Data/MidiPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,8 @@ public void StartSynthesis()
public void SetDirty(string dirtyType)
{
mIsPrepared = mPart.AutoPrepare;
mTask.Stop();
if (SynthesisStatus == SynthesisStatus.Synthesizing)
mTask.Stop();
mTask.SetDirty(dirtyType);
SynthesisStatus = SynthesisStatus.NotSynthesized;
}
Expand Down

0 comments on commit 205ad6f

Please sign in to comment.