From 7674553ac93a32884cc922921ec15b31d0b3c1ea Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 30 Nov 2024 19:06:08 +0200 Subject: [PATCH] use returned response value --- src/app/browser/window/tab/item/identity/gemini/widget.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/identity/gemini/widget.rs b/src/app/browser/window/tab/item/identity/gemini/widget.rs index c9f5f30b..9a2dd7b7 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget.rs @@ -88,9 +88,9 @@ impl Widget { pub fn on_apply(&self, callback: impl Fn(Value) + 'static) { self.gobject.connect_response(Some(RESPONSE_APPLY.0), { let form = self.form.clone(); - move |this, _| { + move |this, response| { // Prevent double-click action - this.set_response_enabled(RESPONSE_APPLY.0, false); + this.set_response_enabled(response, false); // Result callback(form.list.selected())