mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
rename method
This commit is contained in:
parent
3ab3d53e75
commit
879e2c4f27
3 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue