mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
rename method
This commit is contained in:
parent
3ab3d53e75
commit
879e2c4f27
@ -93,7 +93,7 @@ impl Widget {
|
||||
this.set_response_enabled(response, false);
|
||||
|
||||
// Result
|
||||
callback(form.list.selected())
|
||||
callback(form.list.value())
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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>()
|
||||
|
Loading…
x
Reference in New Issue
Block a user