commit 8156830200d2518eb1c8f5c1d872b9a03aea0b35
parent 0e7d1d9787e3c25166c713f1d1354afbe839e1b3
Author: William Casarin <jb55@jb55.com>
Date: Mon, 5 Jan 2026 14:45:14 -0800
nip51: add docstring for apply_select_all_to_pack
Suggested-by: @coderabbitai
Link: https://github.com/damus-io/notedeck/pull/1200#discussion_r2662987647
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/crates/notedeck_ui/src/nip51_set.rs b/crates/notedeck_ui/src/nip51_set.rs
@@ -453,6 +453,8 @@ impl Nip51SetUiCache {
&mut self.entry_for_pack(identifier).select_all
}
+ /// Applies a selection state to all profiles in a pack. Updates both the pack's select_all
+ /// flag and individual profile selection states.
pub fn apply_select_all_to_pack(&mut self, identifier: &str, pks: &[Pubkey], value: bool) {
let pack_state = self.entry_for_pack(identifier);
pack_state.select_all = value;