mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
hold text buffer
This commit is contained in:
parent
2a3e4048ff
commit
dc5bf1a400
1 changed files with 6 additions and 1 deletions
|
|
@ -38,6 +38,7 @@ const LINK_COLOR_DEFAULT: (f32, f32, f32, f32) = (53.0, 132.0, 228.0, 255.0);
|
||||||
const LINK_COLOR_ONHOVER: (f32, f32, f32, f32) = (53.0, 132.0, 228.0, 228.0);
|
const LINK_COLOR_ONHOVER: (f32, f32, f32, f32) = (53.0, 132.0, 228.0, 228.0);
|
||||||
|
|
||||||
pub struct Reader {
|
pub struct Reader {
|
||||||
|
pub buffer: TextBuffer,
|
||||||
pub title: Option<String>,
|
pub title: Option<String>,
|
||||||
pub widget: Rc<Widget>,
|
pub widget: Rc<Widget>,
|
||||||
}
|
}
|
||||||
|
|
@ -459,7 +460,11 @@ impl Reader {
|
||||||
}); // @TODO may be expensive for CPU, add timeout?
|
}); // @TODO may be expensive for CPU, add timeout?
|
||||||
|
|
||||||
// Result
|
// Result
|
||||||
Ok(Self { title, widget })
|
Ok(Self {
|
||||||
|
buffer,
|
||||||
|
title,
|
||||||
|
widget,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue