mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
deactivate welcome dialog, auto-generate profile on first launch, remove extra references, draft bookmarks model
This commit is contained in:
parent
f81e496fa4
commit
b441a681f7
7 changed files with 75 additions and 25 deletions
|
|
@ -1,6 +1,22 @@
|
|||
mod database;
|
||||
use database::Database;
|
||||
|
||||
use sqlite::Transaction;
|
||||
use sqlite::{Connection, Transaction};
|
||||
use std::{rc::Rc, sync::RwLock};
|
||||
|
||||
pub struct Bookmark {
|
||||
pub database: Rc<Database>,
|
||||
}
|
||||
|
||||
impl Bookmark {
|
||||
// Constructors
|
||||
|
||||
pub fn new(connection: Rc<RwLock<Connection>>, profile_id: i64) -> Self {
|
||||
Self {
|
||||
database: Rc::new(Database::new(connection, profile_id)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Tools
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue