mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
remove direct memory access
This commit is contained in:
parent
33369e31ea
commit
19a07cdf1d
32 changed files with 112 additions and 111 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue