mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement separated dialogs for the Bookmarks and History menu items
This commit is contained in:
parent
e548efc93f
commit
ebb38008e1
14 changed files with 378 additions and 171 deletions
|
|
@ -50,9 +50,11 @@ impl Bookmark {
|
|||
false
|
||||
}
|
||||
None => {
|
||||
let time = DateTime::now_local()?;
|
||||
memory.add(Item {
|
||||
id: self.database.add(DateTime::now_local()?, request, title)?,
|
||||
id: self.database.add(time.clone(), request, title)?,
|
||||
request: request.into(),
|
||||
time,
|
||||
title: title.map(|t| t.to_string()),
|
||||
});
|
||||
true
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ pub fn select(
|
|||
Ok(Item {
|
||||
id: row.get(0)?,
|
||||
//profile_id: row.get(1)?,
|
||||
//time: DateTime::from_unix_local(row.get(2)?).unwrap(),
|
||||
time: DateTime::from_unix_local(row.get(2)?).unwrap(),
|
||||
request: row.get(3)?,
|
||||
title: row.get(4)?,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
pub struct Item {
|
||||
pub id: i64,
|
||||
pub request: String,
|
||||
pub time: gtk::glib::DateTime,
|
||||
pub title: Option<String>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue