mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20: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);
|
this.set_response_enabled(response, false);
|
||||||
|
|
||||||
// Result
|
// Result
|
||||||
callback(form.list.selected())
|
callback(form.list.value())
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ impl Form {
|
|||||||
|
|
||||||
/// Validate `Self` components match current selection
|
/// Validate `Self` components match current selection
|
||||||
pub fn is_valid(&self) -> bool {
|
pub fn is_valid(&self) -> bool {
|
||||||
match self.list.selected() {
|
match self.list.value() {
|
||||||
Value::GenerateNewAuth => self.name.is_valid(),
|
Value::GenerateNewAuth => self.name.is_valid(),
|
||||||
Value::ImportPem => self.file.is_valid(),
|
Value::ImportPem => self.file.is_valid(),
|
||||||
_ => true,
|
_ => true,
|
||||||
|
@ -136,7 +136,7 @@ impl List {
|
|||||||
// Getters
|
// Getters
|
||||||
|
|
||||||
/// Get formatted `value` match selected item
|
/// Get formatted `value` match selected item
|
||||||
pub fn selected(&self) -> Value {
|
pub fn value(&self) -> Value {
|
||||||
self.dropdown
|
self.dropdown
|
||||||
.selected_item()
|
.selected_item()
|
||||||
.and_downcast::<Item>()
|
.and_downcast::<Item>()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user