mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-13 01:53:01 +01:00
load data before prompt init to fix bug with prompt logging init
This commit is contained in:
parent
5b3acf3f6b
commit
93d77fdeca
@ -524,6 +524,9 @@ int main(int argc, char *argv[])
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (f_loadfromfile)
|
||||
load_data(m, DATA_FILE);
|
||||
|
||||
prompt = init_windows(m);
|
||||
|
||||
/* create new thread for ncurses stuff */
|
||||
@ -557,9 +560,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
#endif /* _SUPPORT_AUDIO */
|
||||
|
||||
if (f_loadfromfile)
|
||||
load_data(m, DATA_FILE);
|
||||
|
||||
if (f_flag == -1) {
|
||||
msg = "You passed '-f' without giving an argument. Defaulting to 'data' for a keyfile...";
|
||||
line_info_add(prompt, NULL, NULL, NULL, msg, SYS_MSG, 0, 0);
|
||||
|
@ -500,7 +500,6 @@ static void prompt_onInit(ToxWindow *self, Tox *m)
|
||||
}
|
||||
|
||||
execute(ctx->history, self, m, "/help", GLOBAL_COMMAND_MODE);
|
||||
|
||||
wmove(ctx->history, y2-1, 2);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user