0.1.2: stop retrying vaults that were left or forgotten
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -229,7 +229,7 @@ pub fn leave_hub(config: &mut Config, url: &str, forget: bool) -> Result<Vec<Str
|
||||
}
|
||||
Err(_) => said.push(format!("Couldn't reach {url}, so this device only forgot it; its folders stay, no longer synced")),
|
||||
}
|
||||
for vc in config.vaults.iter().filter(|v| v.hub_url.as_deref() == Some(url)) {
|
||||
for vc in config.vaults.iter().filter(|v| v.hub_url.as_deref() == Some(url) && v.path.exists()) {
|
||||
let _ = set_read_only(&vc.path, false);
|
||||
said.push(format!("{} stays at {}, no longer synced", vc.name, vc.path.display()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user