rename method

This commit is contained in:
yggverse 2024-12-05 10:57:56 +02:00
parent 10737998a9
commit 10edad5cb2
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ impl Widget {
let alert_dialog = alert_dialog.clone(); let alert_dialog = alert_dialog.clone();
move || { move || {
// Deactivate apply button if the form values could not be processed // Deactivate apply button if the form values could not be processed
alert_dialog.set_response_enabled(RESPONSE_APPLY.0, form.is_valid()); alert_dialog.set_response_enabled(RESPONSE_APPLY.0, form.is_applicable());
} }
}); });

View File

@ -92,7 +92,7 @@ impl Form {
// Actions // Actions
/// Validate `Self` components match current selection /// Validate `Self` components match current selection
pub fn is_valid(&self) -> bool { pub fn is_applicable(&self) -> bool {
match self.list.value() { 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(),