mirror of
https://github.com/azaion/annotations.git
synced 2026-04-23 05:56:30 +00:00
fixed inference bugs
add DONE during inference, correct handling on C# side
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user