only run full rescan on new db, not init scan

feat/vaults
Tomáš Mládek 2022-02-04 20:32:10 +01:00
parent a7efb4766b
commit 2337cd54c1
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 5 additions and 1 deletions

View File

@ -216,7 +216,11 @@ fn main() -> Result<()> {
if !matches.is_present("NO_INITIAL_UPDATE") {
info!("Running initial update...");
actix::spawn(filesystem::rescan_vault(upend, job_container, false, true));
if open_result.new {
actix::spawn(filesystem::rescan_vault(upend, job_container, false, true));
} else {
actix::spawn(filesystem::rescan_vault(upend, job_container, true, false));
}
}
#[cfg(feature = "desktop")]