mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
update navigation entry on fragment change
This commit is contained in:
parent
6a491751b6
commit
905eee0aab
5 changed files with 20 additions and 21 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue