mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
fix proxy resolver update on request entry autocomplete
This commit is contained in:
parent
500ae1a20a
commit
7de33557f1
2 changed files with 10 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ impl Request {
|
|||
|
||||
update_primary_icon(&entry, profile);
|
||||
|
||||
let suggestion = Rc::new(Suggestion::build(profile, &entry));
|
||||
let suggestion = Rc::new(Suggestion::build(&entry, profile, &proxy_resolver));
|
||||
|
||||
entry.add_controller({
|
||||
use gtk::{
|
||||
|
|
@ -464,12 +464,14 @@ fn update_blocked(
|
|||
entry: &Entry,
|
||||
signal_handler_id: >k::glib::SignalHandlerId,
|
||||
text: &str,
|
||||
resolver: &RefCell<Option<ProxyResolver>>,
|
||||
) {
|
||||
use gtk::prelude::ObjectExt;
|
||||
entry.block_signal(signal_handler_id);
|
||||
entry.set_text(text);
|
||||
entry.select_region(0, -1);
|
||||
update_primary_icon(entry, profile);
|
||||
refresh_proxy_resolver(entry, profile, resolver);
|
||||
entry.unblock_signal(signal_handler_id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue