SHA256
-fix Copy to Tapecatalog
- only use relative paths
This commit is contained in:
1 parent
a3b41679c9
commit
7550cab2c5
3 files changed
+50
-10
No files matched your search
+16
-2
@@ -141,8 +141,22 @@ namespace TapeCatalog
|
||||
#region (COPY_TO_TAPECATALOG)
|
||||
private void COPY_TO_TAPECATALOG(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// delegate to XML helper to copy entries to TapeCatalog list view
|
||||
XML.Methods.CopyToTapeCatalog(this, _files, TapeCatalogListView);
|
||||
// Only copy entries where the verification status indicates OK (checked)
|
||||
try
|
||||
{
|
||||
var okEntries = _files.Where(f => string.Equals(f.Status, "✔", StringComparison.Ordinal)).ToList();
|
||||
if (okEntries.Count == 0)
|
||||
{
|
||||
MessageBox.Show(this, "No verified entries to copy to TapeCatalog.", "Nothing to copy", MessageBoxButton.OK, MessageBoxImage.Information);
|
||||
return;
|
||||
}
|
||||
|
||||
XML.Methods.CopyToTapeCatalog(this, okEntries, TapeCatalogListView);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(this, $"Error copying to TapeCatalog: {ex.Message}", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
}
|
||||
}
|
||||
#endregion (COPY_TO_TAPECATALOG)
|
||||
#region (COPY_FROM_SRCARC)
|
||||
|
||||
Reference in new issue
Block a user