mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Replace diesel with rusqlite
This commit is contained in:
parent
bcb4b84b19
commit
ff3c3728ad
15 changed files with 209 additions and 1542 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::search_tag::MusicusSearchTag;
|
||||
use crate::{library::LibraryQuery, search_tag::MusicusSearchTag};
|
||||
use adw::{gdk, gio, glib, glib::clone, glib::subclass::Signal, prelude::*, subclass::prelude::*};
|
||||
use once_cell::sync::Lazy;
|
||||
use std::{cell::RefCell, time::Duration};
|
||||
|
|
@ -147,8 +147,11 @@ impl MusicusSearchEntry {
|
|||
self.imp().tags.borrow_mut().push(tag);
|
||||
}
|
||||
|
||||
pub fn query(&self) -> String {
|
||||
self.imp().text.text().to_string()
|
||||
pub fn query(&self) -> LibraryQuery {
|
||||
LibraryQuery {
|
||||
search: self.imp().text.text().to_string(),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
#[template_callback]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue