pub fn update_file(text: String) {
    let encrypted = encrypt_text(&text);

    if encrypted.is_empty() {
        show_message("< Error Encrypting File >");
        return;
    }

    update_notes_statics(text);
    do_file_write(encrypted);
}
// Encrypts and saves the updated notes to the file
Encrypts and saves the updated notes to the file
Encrypts and saves the updated notes to the file
pub fn update_file(text: String) {
    let encrypted = encrypt_text(&text);
    if encrypted.is_empty() {
        show_message("< Error Encrypting File >");
        return;
    }
    update_notes_statics(text);
    do_file_write(encrypted);
}
pub fn update_file ( text : String ) { let encrypted = encrypt_text ( & text ) ; if encrypted . is_empty ( ) { show_message ( " " ) ; return ; } update_notes_statics ( text ) ; do_file_write ( encrypted ) ; }
Encrypts and saves the updated notes to the file
Encrypts and saves the updated notes to the file
text
String