draft new tab open on middle click

This commit is contained in:
yggverse 2024-10-14 01:13:26 +03:00
parent 0d55d492f3
commit 8f1e94dd68
8 changed files with 67 additions and 13 deletions

View file

@ -21,9 +21,14 @@ pub struct Text {
impl Text {
// Construct
pub fn gemini(gemtext: &str, base: &Uri, action_page_open: Arc<SimpleAction>) -> Self {
pub fn gemini(
gemtext: &str,
base: &Uri,
action_tab_append: Arc<SimpleAction>,
action_page_open: Arc<SimpleAction>,
) -> Self {
// Init components
let gemini = Gemini::new(gemtext, base, action_page_open);
let gemini = Gemini::new(gemtext, base, action_tab_append, action_page_open);
// Init meta
let meta = Meta {