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 baa54a22..f6aacfe0 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget.rs @@ -69,7 +69,7 @@ impl Widget { let alert_dialog = alert_dialog.clone(); move || { // Deactivate apply button if the form values could not be processed - alert_dialog.set_response_enabled(RESPONSE_APPLY.0, form.is_valid()); + alert_dialog.set_response_enabled(RESPONSE_APPLY.0, form.is_applicable()); } }); diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form.rs index eedef7f5..07ae19c3 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form.rs @@ -92,7 +92,7 @@ impl Form { // Actions /// Validate `Self` components match current selection - pub fn is_valid(&self) -> bool { + pub fn is_applicable(&self) -> bool { match self.list.value() { Value::GenerateNewAuth => self.name.is_valid(), Value::ImportPem => self.file.is_valid(),