notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 5ddd8660a324803fe75395f28ae79c99dc0fe8fb
parent fe30704496f285d1578cef290417b2d4e277a4e3
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 23 Jul 2025 12:29:09 -0700

settings: fix route to relay

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_columns/src/nav.rs | 3+--
Mcrates/notedeck_columns/src/ui/settings.rs | 4++--
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/crates/notedeck_columns/src/nav.rs b/crates/notedeck_columns/src/nav.rs @@ -484,8 +484,7 @@ fn process_render_nav_action( None } RenderNavAction::SettingsAction(action) => { - action.process(app, ctx.theme, ctx.i18n, ctx.img_cache, ui.ctx()); - None + action.process_settings_action(app, ctx.theme, ctx.i18n, ctx.img_cache, ui.ctx()) } }; diff --git a/crates/notedeck_columns/src/ui/settings.rs b/crates/notedeck_columns/src/ui/settings.rs @@ -23,7 +23,7 @@ pub enum SettingsAction { } impl SettingsAction { - pub fn process<'a>( + pub fn process_settings_action<'a>( self, app: &mut Damus, theme_handler: &'a mut ThemeHandler, @@ -35,7 +35,7 @@ impl SettingsAction { match self { SettingsAction::OpenRelays => { - route_action = Some(RouterAction::route_to(Route::Relays)) + route_action = Some(RouterAction::route_to(Route::Relays)); } SettingsAction::SetZoom(zoom_level) => { ctx.set_zoom_factor(zoom_level);