mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
make update action by item id
This commit is contained in:
parent
c92a5406f5
commit
6c4137f2b6
7 changed files with 48 additions and 41 deletions
|
|
@ -5,7 +5,7 @@ use database::Database;
|
|||
use gtk::{
|
||||
gio::SimpleAction,
|
||||
glib::{timeout_add_local, ControlFlow, GString, SourceId},
|
||||
prelude::{ActionExt, EditableExt, EntryExt},
|
||||
prelude::{ActionExt, EditableExt, EntryExt, ToVariant},
|
||||
Entry,
|
||||
};
|
||||
use sqlite::Transaction;
|
||||
|
|
@ -47,7 +47,7 @@ impl Widget {
|
|||
|
||||
// Connect events
|
||||
gobject.connect_changed(move |_| {
|
||||
action_update.activate(None);
|
||||
action_update.activate(Some(&"".to_variant())); // @TODO
|
||||
});
|
||||
|
||||
gobject.connect_activate(move |_| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue