mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 18:26:31 +00:00
add warning ai status, fix ai availability handling 1
This commit is contained in:
@@ -496,6 +496,7 @@
|
||||
|
||||
<Button
|
||||
x:Name="AIDetectBtn"
|
||||
IsEnabled="False"
|
||||
Grid.Column="10"
|
||||
Padding="2" Width="25"
|
||||
Height="25"
|
||||
|
||||
@@ -483,5 +483,7 @@ public class AnnotatorEventHandler(
|
||||
mainWindow.AIDetectBtn.IsEnabled = e.Status == AIAvailabilityEnum.Enabled;
|
||||
mainWindow.StatusHelp.Text = e.ToString();
|
||||
});
|
||||
1 if (e.Status is AIAvailabilityEnum.Enabled or AIAvailabilityEnum.Error)
|
||||
await inferenceService.CheckAIAvailabilityTokenSource.CancelAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user