mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:06:30 +00:00
fixed bugs with queue handling. At least most of them
This commit is contained in:
@@ -417,7 +417,8 @@ public partial class Annotator
|
||||
mediaFile.HasAnnotations = labelsDict.ContainsKey(mediaFile.FName);
|
||||
|
||||
AllMediaFiles = new ObservableCollection<MediaFileInfo>(allFiles);
|
||||
MediaFilesDict = AllMediaFiles.ToDictionary(x => x.FName);
|
||||
MediaFilesDict = AllMediaFiles.GroupBy(x => x.Name)
|
||||
.ToDictionary(gr => gr.Key, gr => gr.First());
|
||||
LvFiles.ItemsSource = AllMediaFiles;
|
||||
DataContext = this;
|
||||
}
|
||||
@@ -463,7 +464,7 @@ public partial class Annotator
|
||||
{
|
||||
Title = "Open Video folder",
|
||||
IsFolderPicker = true,
|
||||
InitialDirectory = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory)
|
||||
InitialDirectory = Path.GetDirectoryName(_appConfig.DirectoriesConfig.VideosDirectory)
|
||||
};
|
||||
var dialogResult = dlg.ShowDialog();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user