mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
generate document title based on first line
This commit is contained in:
parent
5c3f41c054
commit
1fa8f3f29d
2 changed files with 18 additions and 4 deletions
|
|
@ -61,11 +61,12 @@ impl Text {
|
|||
}
|
||||
|
||||
pub fn nex(actions: (&Rc<WindowAction>, &Rc<ItemAction>), base: &Uri, data: &str) -> Self {
|
||||
let text_view = TextView::nex(actions, base, data);
|
||||
let mut title = None;
|
||||
let text_view = TextView::nex(actions, base, data, &mut title);
|
||||
Self {
|
||||
scrolled_window: reader(&text_view),
|
||||
text_view,
|
||||
meta: Meta { title: None },
|
||||
meta: Meta { title },
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue