Last commit did not work

This commit is contained in:
Tomas Rivera
2026-04-09 18:27:02 +02:00
parent 27b0a35dd0
commit 2835de027c
4 changed files with 16 additions and 1 deletions
+5 -1
View File
@@ -289,6 +289,8 @@ int main(int argc, char *argv[]) {
goto vault_creation;
} else {
goto note_selection;
debug("[BYPASS] %s does exist. Going to note selection");
}
}
@@ -356,11 +358,13 @@ note_selection:
char *noteSelected;
// if we set to bypass the note selector
if (bypassSelectionNote) {
// (TODO LATER) Add shouldDebug info
debug("We are bypassing note selection.");
noteSelected = bypassSelectionNoteValue;
if (isStringInArray(noteSelected, (const char **)filesArray, filesCount)) {// we just give filesCount and not filesCount + extraOptions to avoid matching with an extra options.
debug("The note specified with -n or --note does exist. Opening it.");
goto open_note;
} else { // if the specified note doesn't exist. We creat it
debug("The note specified with -n or --note doesn't exist. Creating it.");
goto note_creation;
}
}