mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 09:34:19 +01:00
settings: fix route to relay
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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())
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user