Try to fix some background render thread problems
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user