fix proxy resolver update on request entry autocomplete

This commit is contained in:
yggverse 2025-08-01 21:01:25 +03:00
parent 500ae1a20a
commit 7de33557f1
2 changed files with 10 additions and 2 deletions

View file

@ -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: &gtk::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);
}