commit f6d50a034d4ab118d5ad7872e4c0239467928b4c
parent d2ff33d031646f876c328e6e07edd3f5d96e8c24
Author: William Casarin <jb55@jb55.com>
Date: Sun, 25 Jan 2026 15:33:19 -0800
nit: rename to pop_to_root
its a bit more clear
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crates/notedeck_columns/src/toolbar.rs b/crates/notedeck_columns/src/toolbar.rs
@@ -62,7 +62,7 @@ impl ToolbarAction {
match selection_result {
crate::column::SelectionResult::AlreadySelected(col_index) => {
// We're already on this toolbar view, so pop all routes to go to top
- go_to_top_of_column(app, ctx, col_index);
+ pop_to_root(app, ctx, col_index);
app.scroll_to_top();
}
crate::column::SelectionResult::NewSelection(_) => {
@@ -80,7 +80,7 @@ impl ToolbarAction {
/// Pop all routes in the column until we're back at depth 1 (the base route).
/// This is used when clicking a toolbar button for a view we're already on
/// to immediately return to the top level regardless of navigation depth.
-fn go_to_top_of_column(app: &mut Damus, ctx: &mut AppContext, col_index: usize) {
+fn pop_to_root(app: &mut Damus, ctx: &mut AppContext, col_index: usize) {
let Some(cols) = app.decks_cache.active_columns_mut(ctx.i18n, ctx.accounts) else {
return;
};