group namespaces, update comments

This commit is contained in:
yggverse 2024-12-08 04:57:21 +02:00
parent 2c30dfcdc9
commit f0feeec563

View File

@ -13,9 +13,10 @@ use name::Name;
use save::Save; use save::Save;
use super::WidgetAction; use super::WidgetAction;
use crate::app::browser::action::Action as BrowserAction; use crate::{
use crate::app::browser::window::action::Action as WindowAction; app::browser::{action::Action as BrowserAction, window::action::Action as WindowAction},
use crate::profile::Profile; Profile,
};
use gtk::{glib::Uri, prelude::BoxExt, Box, Orientation}; use gtk::{glib::Uri, prelude::BoxExt, Box, Orientation};
use std::rc::Rc; use std::rc::Rc;
@ -85,7 +86,7 @@ impl Form {
// Actions // Actions
/// Validate `Self` components match current selection /// Get `Apply` button sensitivity to disable when it does not change anything
pub fn is_applicable(&self) -> bool { pub fn is_applicable(&self) -> bool {
match self.list.selected().value_enum() { match self.list.selected().value_enum() {
Value::GeneratePem => self.name.is_valid(), Value::GeneratePem => self.name.is_valid(),