Skip to content

Commit 9b8d248

Browse files
Added check for duplicate archives to only look for th same asset library.
1 parent db743e9 commit 9b8d248

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

DazContentInstaller/ViewModels/MainWindowViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ await Task.Run(async () =>
216216

217217
var archivesToInstallNames = archivesToInstall.Select(GetLoadedArchiveName).ToArray();
218218
var existingArchives = await dbContext.Archives
219-
.Where(a => archivesToInstallNames.Contains(a.ArchiveName))
219+
.Where(a => a.AssetLibraryId == CurrentSelectedAssetLibrary.Id &&
220+
archivesToInstallNames.Contains(a.ArchiveName))
220221
.Include(a => a.AssetFiles)
221222
.ToListAsync();
222223

0 commit comments

Comments
 (0)