mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use shared reference for tab item id
This commit is contained in:
parent
e66b065fc3
commit
ea3aab4d68
3 changed files with 7 additions and 6 deletions
|
|
@ -36,7 +36,7 @@ use sqlite::Transaction;
|
|||
use std::{rc::Rc, time::Duration};
|
||||
|
||||
pub struct Page {
|
||||
id: GString,
|
||||
id: Rc<GString>,
|
||||
profile: Rc<Profile>,
|
||||
// Actions
|
||||
browser_action: Rc<BrowserAction>,
|
||||
|
|
@ -54,7 +54,7 @@ impl Page {
|
|||
// Constructors
|
||||
|
||||
pub fn new(
|
||||
id: GString,
|
||||
id: Rc<GString>,
|
||||
profile: Rc<Profile>,
|
||||
action: (Rc<BrowserAction>, Rc<WindowAction>, Rc<TabAction>),
|
||||
) -> Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue