Skip to content

Commit

Permalink
untrack: clear the set
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Feb 29, 2024
1 parent 87d518d commit dd58819
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
description = "Back up your favorite online resources with CLI."
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion fav_cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion fav_cli/src/bili/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dd58819

Please sign in to comment.