mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
use tuple for actions
This commit is contained in:
parent
0cf4206ebc
commit
8917d14908
4 changed files with 8 additions and 25 deletions
|
|
@ -20,14 +20,9 @@ pub struct Text {
|
|||
|
||||
impl Text {
|
||||
// Construct
|
||||
pub fn gemini(
|
||||
gemtext: &str,
|
||||
base: &Uri,
|
||||
window_action: Rc<WindowAction>,
|
||||
tab_action: Rc<TabAction>,
|
||||
) -> Self {
|
||||
pub fn gemini(gemtext: &str, base: &Uri, actions: (Rc<WindowAction>, Rc<TabAction>)) -> Self {
|
||||
// Init components
|
||||
let gemini = Gemini::new(gemtext, base, window_action, tab_action);
|
||||
let gemini = Gemini::new(gemtext, base, actions);
|
||||
|
||||
// Init meta
|
||||
let meta = Meta {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue