mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 07:54:14 +00:00
fix widget activation
This commit is contained in:
parent
8bff9ce719
commit
0048e81fa0
@ -21,11 +21,15 @@ impl Request {
|
||||
|
||||
// Connect events
|
||||
widget.connect_changed(|entry| {
|
||||
let _ = entry.activate_action("win.update", None);
|
||||
entry
|
||||
.activate_action("win.update", None)
|
||||
.expect("Action `win.update` not found")
|
||||
});
|
||||
|
||||
widget.connect_activate(|entry| {
|
||||
let _ = entry.activate_action("win.tab_page_reload", None); // @TODO variant
|
||||
entry
|
||||
.activate_action("win.tab_page_reload", None)
|
||||
.expect("Action `win.tab_page_reload` not found")
|
||||
});
|
||||
|
||||
// Result
|
||||
@ -42,7 +46,7 @@ impl Request {
|
||||
self.widget.set_text(value);
|
||||
|
||||
if activate {
|
||||
self.widget.activate();
|
||||
self.widget.emit_activate();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user