From 879e2c4f2759f9c46dace59b4a00ae8dda9aabb0 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 5 Dec 2024 10:19:21 +0200 Subject: [PATCH] rename method --- src/app/browser/window/tab/item/identity/gemini/widget.rs | 2 +- src/app/browser/window/tab/item/identity/gemini/widget/form.rs | 2 +- .../browser/window/tab/item/identity/gemini/widget/form/list.rs | 2 +- 3 files changed, 3 insertions(+), 3 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 246c73ee..baa54a22 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget.rs @@ -93,7 +93,7 @@ impl Widget { this.set_response_enabled(response, false); // Result - callback(form.list.selected()) + callback(form.list.value()) } }); } 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 63818ef5..eedef7f5 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 @@ -93,7 +93,7 @@ impl Form { /// Validate `Self` components match current selection pub fn is_valid(&self) -> bool { - match self.list.selected() { + match self.list.value() { Value::GenerateNewAuth => self.name.is_valid(), Value::ImportPem => self.file.is_valid(), _ => true, diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs index 0567a8f0..09985b6e 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/list.rs @@ -136,7 +136,7 @@ impl List { // Getters /// Get formatted `value` match selected item - pub fn selected(&self) -> Value { + pub fn value(&self) -> Value { self.dropdown .selected_item() .and_downcast::()