pub fn do_open_path(pth: String, create: bool) {
    let opassword;
    let opath;

    let password = g_get_password();
    opassword = password;
    g_set_password(s!());

    let path = g_get_path();
    opath = path;
    g_set_path(pth);

    if create && !create_file() {
        g_set_password(opassword);
        g_set_path(opath);
        show_message("< Can't Create File >");
        return;
    }

    let notes = get_notes(true);

    if notes.is_empty() {
        g_set_password(opassword);
        g_set_path(opath);
        show_message("< Can't Decrypt File >");
    } else {
        reset_state(notes);
        goto_last_page();
    }
}
// Does the open from path action
Does the open from path action
Does the open from path action
pub fn do_open_path(pth: String, create: bool) {
    let opassword;
    let opath;
    let password = g_get_password();
    opassword = password;
    g_set_password(s!());
    let path = g_get_path();
    opath = path;
    g_set_path(pth);
    if create && !create_file() {
        g_set_password(opassword);
        g_set_path(opath);
        show_message("< Can't Create File >");
        return;
    }
    let notes = get_notes(true);
    if notes.is_empty() {
        g_set_password(opassword);
        g_set_path(opath);
        show_message("< Can't Decrypt File >");
    } else {
        reset_state(notes);
        goto_last_page();
    }
}
pub fn do_open_path ( pth : String , create : bool ) { let opassword ; let opath ; let password = g_get_password ( ) ; opassword = password ; g_set_password ( s ! ( ) ) ; let path = g_get_path ( ) ; opath = path ; g_set_path ( pth ) ; if create && ! create_file ( ) { g_set_password ( opassword ) ; g_set_path ( opath ) ; show_message ( " " ) ; return ; } let notes = get_notes ( true ) ; if notes . is_empty ( ) { g_set_password ( opassword ) ; g_set_path ( opath ) ; show_message ( " " ) ; } else { reset_state ( notes ) ; goto_last_page ( ) ; } }
Does the open from path action
Does the open from path action
pth
String
create
bool