Try to fix some background render thread problems

This commit is contained in:
2026-03-10 17:26:29 -07:00
parent 65b63b719b
commit 9c8d57cfce
+1 -2
View File
@@ -193,10 +193,9 @@
Task thread = new Task(async () => { Task thread = new Task(async () => {
aiModule.TrainAI(); aiModule.TrainAI();
trainButtonText = "AI Trained"; trainButtonText = "AI Trained";
StateHasChanged();
await Task.Delay(2000); await Task.Delay(2000);
trainButtonText = "Train AI"; trainButtonText = "Train AI";
StateHasChanged(); await Task.Delay(1);
Debounce = true; Debounce = true;
}); });
thread.Start(); thread.Start();