fixed inference bugs

add DONE during inference, correct handling on C# side
This commit is contained in:
Alex Bezdieniezhnykh
2025-02-01 02:09:11 +02:00
parent e7afa96a0b
commit 739759628a
23 changed files with 324 additions and 95 deletions
+5 -3
View File
@@ -200,7 +200,9 @@ public partial class Annotator
DgAnnotations.MouseDoubleClick += (sender, args) =>
{
var dgRow = ItemsControl.ContainerFromElement((DataGrid)sender, (args.OriginalSource as DependencyObject)!) as DataGridRow;
OpenAnnotationResult((AnnotationResult)dgRow!.Item);
if (dgRow != null)
OpenAnnotationResult((AnnotationResult)dgRow!.Item);
};
DgAnnotations.KeyUp += async (sender, args) =>
@@ -531,13 +533,13 @@ public partial class Annotator
LvFiles.SelectedIndex += 1;
return (MediaFileInfo)LvFiles.SelectedItem;
});
LvFiles.Items.Refresh();
Dispatcher.Invoke(() => LvFiles.Items.Refresh());
}
Dispatcher.Invoke(() =>
{
_mediaPlayer.Stop();
LvFiles.Items.Refresh();
IsInferenceNow = false;
FollowAI = false;
});
}, token);
}