From 5347ffbbfd4b94c4b6c4204ad98935124f8c8dc2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 30 Jan 2025 13:19:22 +0200 Subject: [PATCH] connect `search` mod --- src/profile.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/profile.rs b/src/profile.rs index 2bc27e12..dd054a56 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -2,11 +2,13 @@ mod bookmark; mod database; mod history; mod identity; +mod search; use bookmark::Bookmark; use database::Database; use history::History; use identity::Identity; +use search::Search; use gtk::glib::{user_config_dir, DateTime}; use sqlite::{Connection, Transaction}; @@ -23,6 +25,7 @@ pub struct Profile { pub database: Rc, pub history: Rc, pub identity: Rc, + pub search: Rc, pub config_path: PathBuf, } @@ -103,6 +106,7 @@ impl Profile { // Init components let bookmark = Rc::new(Bookmark::build(&connection, &profile_id)); let history = Rc::new(History::build(&connection, &profile_id)); + let search = Rc::new(Search::build(&connection, &profile_id)); let identity = Rc::new(match Identity::build(&connection, &profile_id) { Ok(result) => result, Err(e) => todo!("{:?}", e.to_string()), @@ -114,6 +118,7 @@ impl Profile { database, history, identity, + search, config_path, } } @@ -128,6 +133,7 @@ pub fn migrate(tx: &Transaction) -> Result<(), String> { // Delegate migration to children components bookmark::migrate(tx)?; identity::migrate(tx)?; + search::migrate(tx)?; // @TODO not in use yet // history::migrate(tx)?;