diff --git a/CHANGELOG.md b/CHANGELOG.md index 8193977..f57882d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com ## [Unreleased] +### [0.2.6] - 2024-02-29 + +- Untrack: When untrack a set, it will clear its content now, or `fav status` would keep showing its resources after untracking. + ## [0.2.5] - 2024-02-29 - Improvement: the help info of `pull`. diff --git a/Cargo.lock b/Cargo.lock index eaadb4c..19b9838 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -347,7 +347,7 @@ checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "fav" -version = "0.2.5" +version = "0.2.6" dependencies = [ "fav_cli", "tokio", @@ -357,7 +357,7 @@ dependencies = [ [[package]] name = "fav_cli" -version = "0.0.1-alpha4" +version = "0.0.1-alpha5" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index 0f3f678..6381746 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ resolver = "2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [workspace.package] -version = "0.2.5" +version = "0.2.6" authors = ["Louis <836250617@qq.com>"] description = "Back up your favorite online resources with CLI." license = "MIT" diff --git a/fav_cli/Cargo.toml b/fav_cli/Cargo.toml index 72eb1a4..3e9b496 100644 --- a/fav_cli/Cargo.toml +++ b/fav_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fav_cli" -version = "0.0.1-alpha4" +version = "0.0.1-alpha5" authors.workspace = true description = "Fav's CLI, helping persist the remote source. Repo: https://github.com/kingwingfly/fav" license.workspace = true diff --git a/fav_cli/src/bili/action.rs b/fav_cli/src/bili/action.rs index d94bdf3..0ded0ba 100644 --- a/fav_cli/src/bili/action.rs +++ b/fav_cli/src/bili/action.rs @@ -88,7 +88,7 @@ pub(super) fn untrack(id: String) -> FavCoreResult<()> { let id_ = Id::from(&id); if let Some(s) = try_find_set(&mut sets, &id_) { s.off_status(StatusFlags::TRACK); - s.off_res_status(StatusFlags::TRACK); + s.medias.clear(); } else if let Some(r) = try_find_res(&mut sets, &id_) { r.off_status(StatusFlags::TRACK); } else {