fix: mark loading outside of task

This commit is contained in:
Anna 2024-01-03 23:55:13 -05:00
parent fadfd65b97
commit c18c55675c
Signed by: anna
GPG Key ID: D0943384CD9F87D1
1 changed files with 2 additions and 1 deletions

View File

@ -47,9 +47,10 @@ internal class QuestionManager : IDisposable, IReadOnlyList<IQuestion> {
return;
}
this.Loading = true;
this._page = Math.Max(1, value);
Task.Run(async () => {
this.Loading = true;
using var notLoading = new OnDispose(() => this.Loading = false);
await this.Check();
});