use shared reference for tab item id

This commit is contained in:
yggverse 2024-12-11 17:26:33 +02:00
parent e66b065fc3
commit ea3aab4d68
3 changed files with 7 additions and 6 deletions

View file

@ -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 {