From 03eb0fd87d109288fe9ca83176902e717263c5bd Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 21 Nov 2024 15:02:20 +0200 Subject: [PATCH] lock open button to prevent double click --- .../window/tab/item/identity/gemini/widget/form/file.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/file.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/file.rs index acc46cbf..9dcb9140 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/file.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/file.rs @@ -37,6 +37,9 @@ impl File { let pem = pem.clone(); let update = action.update.clone(); move |_| { + // Lock open button (prevent double click) + gobject.set_sensitive(false); + // Init file filters related with PEM extension let filters = ListStore::new::(); @@ -83,6 +86,7 @@ impl File { gobject.set_label(reason.message()) } } + gobject.set_sensitive(true); // unlock update.activate() } });