#[derive(Debug)]
pub struct ScriptsTabState {
pub editing_script_index: Option<usize>,
pub temp_script_name: String,
pub temp_script_path: String,
pub temp_script_args: String,
pub temp_script_auto_start: bool,
pub temp_script_enabled: bool,
pub temp_script_restart_policy: par_term_config::automation::RestartPolicy,
pub temp_script_restart_delay_ms: u64,
pub temp_script_subscriptions: String,
pub temp_script_allow_write_text: bool,
pub temp_script_prompt_before_write_text: bool,
pub temp_script_allow_run_command: bool,
pub temp_script_allow_change_config: bool,
pub temp_script_write_text_rate_limit: u32,
pub temp_script_run_command_rate_limit: u32,
pub adding_new_script: bool,
}
impl Default for ScriptsTabState {
fn default() -> Self {
Self {
editing_script_index: None,
temp_script_name: String::new(),
temp_script_path: String::new(),
temp_script_args: String::new(),
temp_script_auto_start: false,
temp_script_enabled: true,
temp_script_restart_policy: par_term_config::automation::RestartPolicy::Never,
temp_script_restart_delay_ms: 0,
temp_script_subscriptions: String::new(),
temp_script_allow_write_text: false,
temp_script_prompt_before_write_text: true,
temp_script_allow_run_command: false,
temp_script_allow_change_config: false,
temp_script_write_text_rate_limit: 0,
temp_script_run_command_rate_limit: 0,
adding_new_script: false,
}
}
}