Count duplicate originals once the sweep has dated them
A copy becomes a duplicate only once its capture time is read, and on a fresh library that is the sweep, not the scan: the sidebar row stayed hidden until the next launch. The count is refreshed when a sweep that dated anything finishes. Also says on a group left out of the plan that nothing will move, drops an unused method, and names the review's completion callback type for clippy.
This commit is contained in:
@@ -357,6 +357,13 @@ pub(super) fn start_sweep(window: &AppWindow, ctl: &Rc<LibraryController>) {
|
||||
let borrow = ctl_cb.catalog.borrow();
|
||||
if let Some(catalog) = borrow.as_ref() {
|
||||
refresh_timeline(&w, catalog, &ctl_cb);
|
||||
// A capture time is half of what makes two
|
||||
// files one photograph, and the sweep is
|
||||
// what reads it: a copy is a duplicate only
|
||||
// once it is dated.
|
||||
if dated > 0 {
|
||||
crate::duplicates_ui::refresh_count(&w, catalog);
|
||||
}
|
||||
}
|
||||
}
|
||||
// TRACES: NFR-R2
|
||||
|
||||
Reference in New Issue
Block a user