feat(duplicates): exit duplicate mode when no duplicates found, #783

When no duplicate groups are detected, the duplicate manager now checks if it is currently in duplicate mode and calls `exitDuplicateMode()` to clear the display. This prevents the UI from showing stale duplicate information when no duplicates exist.
This commit is contained in:
Will Miao
2026-02-05 22:54:24 +08:00
parent fa3625ff72
commit b313f36be9

View File

@@ -127,6 +127,10 @@ export class ModelDuplicatesManager {
if (this.duplicateGroups.length === 0) {
showToast('toast.duplicates.noDuplicatesFound', { type: this.modelType }, 'info');
// If already in duplicate mode, exit to clear the display
if (this.inDuplicateMode) {
this.exitDuplicateMode();
}
return false;
}