remove direct memory access

This commit is contained in:
yggverse 2025-03-14 12:51:33 +02:00
parent 33369e31ea
commit 19a07cdf1d
32 changed files with 112 additions and 111 deletions

View file

@ -18,7 +18,7 @@ use gtk::{
FileLauncher,
};
use sqlite::Transaction;
use std::rc::Rc;
use std::{rc::Rc, sync::Arc};
pub struct Browser {
pub action: Rc<Action>,
@ -30,7 +30,7 @@ impl Browser {
// Constructors
/// Build new `Self`
pub fn build(profile: &Rc<Profile>) -> Browser {
pub fn build(profile: &Arc<Profile>) -> Browser {
// Init components
let action = Rc::new(Action::new());
let window = Rc::new(Window::build(profile, &action));