update navigation entry on fragment change

This commit is contained in:
yggverse 2026-03-11 15:50:57 +02:00
parent 6a491751b6
commit 905eee0aab
5 changed files with 20 additions and 21 deletions

View file

@ -4,7 +4,7 @@ mod nex;
mod plain;
mod source;
use crate::profile::Profile;
use crate::{app::browser::window::tab::item::page::Page, profile::Profile};
use super::{ItemAction, WindowAction};
use adw::ClampScrollable;
@ -58,11 +58,11 @@ impl Text {
pub fn markdown(
actions: (&Rc<WindowAction>, &Rc<ItemAction>),
profile: &Rc<Profile>,
page: &Rc<Page>,
base: &Uri,
gemtext: &str,
) -> Self {
let markdown = Markdown::build(actions, profile, base, gemtext);
let markdown = Markdown::build(actions, page, base, gemtext);
Self {
scrolled_window: reader(&markdown.text_view),
text_view: markdown.text_view,