rename method

This commit is contained in:
yggverse 2024-12-05 10:19:21 +02:00
parent 3ab3d53e75
commit 879e2c4f27
3 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ impl Widget {
this.set_response_enabled(response, false);
// Result
callback(form.list.selected())
callback(form.list.value())
}
});
}

View File

@ -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,

View File

@ -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::<Item>()