siggy 1.7.0

Terminal-based Signal messenger client with vim keybindings
Documentation
use crate::settings_profile::SettingsProfile;

/// State for the settings profile manager overlay.
pub struct SettingsProfileOverlayState {
    /// Current settings profile name
    pub name: String,
    /// Settings profile manager overlay visible
    pub show: bool,
    /// Cursor position in settings profile manager
    pub index: usize,
    /// All available settings profiles
    pub available: Vec<SettingsProfile>,
    /// Save-as mode active in profile manager
    pub save_as: bool,
    /// Text input buffer for save-as name
    pub save_as_input: String,
}

impl Default for SettingsProfileOverlayState {
    fn default() -> Self {
        Self {
            name: "Default".to_string(),
            show: false,
            index: 0,
            available: Vec::new(),
            save_as: false,
            save_as_input: String::new(),
        }
    }
}