pub fn save() {
    let manager = MANAGER.as_ref().lock().unwrap();
    //TODO: deal com save problems here
    if let Some(content) = &manager.content {
        if let Err(error) = save_settings_to_file(&content.file_name, &content.config) {
            error!(
                "Failed to save settings: file: {:#?}, configuration: {:#?}, error: {:#?}",
                &content.file_name, &content.config, error
            );
        }
    } else {
        debug!("saved!");
    }
}
// Save the latest state of the settings
Save the latest state of the settings
Save the latest state of the settings
pub fn save() {
    let manager = MANAGER.as_ref().lock().unwrap();
    //TODO: deal com save problems here
    if let Some(content) = &manager.content {
        if let Err(error) = save_settings_to_file(&content.file_name, &content.config) {
            error!(
                "Failed to save settings: file: {:#?}, configuration: {:#?}, error: {:#?}",
                &content.file_name, &content.config, error
            );
        }
    } else {
        debug!("saved!");
    }
}
pub fn save ( ) { let manager = MANAGER . as_ref ( ) . lock ( ) . unwrap ( ) ; //TODO: deal com save problems here if let Some ( content ) = & manager . content { if let Err ( error ) = save_settings_to_file ( & content . file_name , & content . config ) { error ! ( " " content file_name content config error ) ; } } else { debug ! ( " " ) ; } }
Save the latest state of the settings
Save the latest state of the settings