:: commit d90bc6bc458c16dbefe6de9cc622ccb238c48ebb

mintsuki <mintsuki@protonmail.com> — 2022-07-09 09:58

parents: 9e85196c25

console: Set config_ready to true after successfully running editor

diff --git a/common/console.c b/common/console.c
index b43d259a..4f1c3023 100644
--- a/common/console.c
+++ b/common/console.c
@@ -10,6 +10,7 @@
 #include <lib/blib.h>
 #include <lib/term.h>
 #include <lib/part.h>
+#include <lib/config.h>
 
 static void console_help(void) {
     print(
@@ -45,6 +46,7 @@ void console(void) {
         } else if (editor_enabled && strcmp(prompt, "editor") == 0) {
             char *new_entry = config_entry_editor("New Entry", "");
             if (new_entry != NULL) {
+                config_ready = true;
                 boot(new_entry);
             }
         } else if (strcmp(prompt, "version") == 0) {
tab: 248 wrap: offon