diff --git a/LRReader.Shared/ViewModels/Tools/DeduplicatorToolViewModel.cs b/LRReader.Shared/ViewModels/Tools/DeduplicatorToolViewModel.cs
index e59df05..3890866 100644
--- a/LRReader.Shared/ViewModels/Tools/DeduplicatorToolViewModel.cs
+++ b/LRReader.Shared/ViewModels/Tools/DeduplicatorToolViewModel.cs
@@ -123,10 +123,13 @@ private async Task DeleteArchive(string arcid)
}
[RelayCommand]
- private void MarkNonDup()
+ private void MarkNonDup() => MarkNonDupValue(_current);
+
+ [RelayCommand]
+ private void MarkNonDupValue(ArchiveHit archiveHit)
{
- Settings.Profile.MarkedAsNonDuplicated.Add(_current);
- Items.Remove(_current);
+ Settings.Profile.MarkedAsNonDuplicated.Add(archiveHit);
+ Items.Remove(archiveHit);
Settings.SaveProfiles();
}
diff --git a/LRReader.UWP/Strings/en/Tools.resw b/LRReader.UWP/Strings/en/Tools.resw
index 3810ce9..d37c210 100644
--- a/LRReader.UWP/Strings/en/Tools.resw
+++ b/LRReader.UWP/Strings/en/Tools.resw
@@ -208,6 +208,9 @@ At last enable Skip missing thumbnails and try again
Mark as non duplicate?
+
+ Mark as non duplicate
+
Mark as non duplicate
diff --git a/LRReader.UWP/Strings/es/Tools.resw b/LRReader.UWP/Strings/es/Tools.resw
index 6d5e7bf..bb14b2b 100644
--- a/LRReader.UWP/Strings/es/Tools.resw
+++ b/LRReader.UWP/Strings/es/Tools.resw
@@ -208,6 +208,9 @@ Por último, active la opción de omitir las miniaturas que faltan y vuelva a in
¿Marcar como no duplicado?
+
+ Marcar como no duplicado
+
Marcar como no duplicado
diff --git a/LRReader.UWP/Strings/ru/Tools.resw b/LRReader.UWP/Strings/ru/Tools.resw
index 7533df1..ed8ad65 100644
--- a/LRReader.UWP/Strings/ru/Tools.resw
+++ b/LRReader.UWP/Strings/ru/Tools.resw
@@ -207,6 +207,9 @@
Пометить как не дубликат?
+
+ Пометить как не дубликат
+
Пометить как не дубликат
diff --git a/LRReader.UWP/Strings/zh-cn/Tools.resw b/LRReader.UWP/Strings/zh-cn/Tools.resw
index 5bb697c..3221495 100644
--- a/LRReader.UWP/Strings/zh-cn/Tools.resw
+++ b/LRReader.UWP/Strings/zh-cn/Tools.resw
@@ -208,6 +208,9 @@
标记为非重复?
+
+ 标记为非重复
+
标记为非重复
diff --git a/LRReader.UWP/Views/Content/Tools/Deduplicator.xaml b/LRReader.UWP/Views/Content/Tools/Deduplicator.xaml
index b36e5b3..e23003f 100644
--- a/LRReader.UWP/Views/Content/Tools/Deduplicator.xaml
+++ b/LRReader.UWP/Views/Content/Tools/Deduplicator.xaml
@@ -80,7 +80,7 @@
8,7,8,9
-
+
-
+
diff --git a/LRReader.UWP/Views/Items/ArchiveHitItem.xaml b/LRReader.UWP/Views/Items/ArchiveHitItem.xaml
index d868927..6eaf125 100644
--- a/LRReader.UWP/Views/Items/ArchiveHitItem.xaml
+++ b/LRReader.UWP/Views/Items/ArchiveHitItem.xaml
@@ -16,10 +16,15 @@
-
+
-
+
+
+
+
+
+
diff --git a/LRReader.UWP/Views/Items/ArchiveHitItem.xaml.cs b/LRReader.UWP/Views/Items/ArchiveHitItem.xaml.cs
index b57d403..e3073a6 100644
--- a/LRReader.UWP/Views/Items/ArchiveHitItem.xaml.cs
+++ b/LRReader.UWP/Views/Items/ArchiveHitItem.xaml.cs
@@ -43,6 +43,12 @@ public ICommand RemoveCommand
set => SetValue(RemoveCommandProperty, value);
}
+ public ICommand MarkNonDuplicateCommand
+ {
+ get => (ICommand)GetValue(MarkNonDuplicateCommandProperty);
+ set => SetValue(MarkNonDuplicateCommandProperty, value);
+ }
+
private async void UserControl_DataContextChanged(FrameworkElement sender, DataContextChangedEventArgs args)
{
if (args.NewValue == null)
@@ -101,6 +107,7 @@ private void Remove_Click(object sender, RoutedEventArgs e)
public static readonly DependencyProperty ShowRemoveProperty = DependencyProperty.Register("ShowRemove", typeof(bool), typeof(ArchiveHitItem), new PropertyMetadata(false));
public static readonly DependencyProperty RemoveCommandProperty = DependencyProperty.RegisterAttached("RemoveCommand", typeof(ICommand), typeof(ArchiveHitItem), new PropertyMetadata(null));
+ public static readonly DependencyProperty MarkNonDuplicateCommandProperty = DependencyProperty.RegisterAttached("MarkNonDuplicateCommand", typeof(ICommand), typeof(ArchiveHitItem), new PropertyMetadata(null));
}
}