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

@ -10,12 +10,12 @@ use gtk::{
prelude::{ActionExt, ApplicationExt, ApplicationExtManual, GtkApplicationExt},
};
use sqlite::Transaction;
use std::rc::Rc;
use std::{rc::Rc, sync::Arc};
const APPLICATION_ID: &str = "io.github.yggverse.Yoda";
pub struct App {
profile: Rc<Profile>,
profile: Arc<Profile>,
application: Application,
}
@ -30,7 +30,7 @@ impl App {
.build();
// Init components
let profile = Rc::new(profile);
let profile = Arc::new(profile);
let browser = Rc::new(Browser::build(&profile));
// Prevent startup warning @TODO