mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-27 02:03:26 +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);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (f_loadfromfile)
|
||||||
|
load_data(m, DATA_FILE);
|
||||||
|
|
||||||
prompt = init_windows(m);
|
prompt = init_windows(m);
|
||||||
|
|
||||||
/* create new thread for ncurses stuff */
|
/* create new thread for ncurses stuff */
|
||||||
@ -557,9 +560,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#endif /* _SUPPORT_AUDIO */
|
#endif /* _SUPPORT_AUDIO */
|
||||||
|
|
||||||
if (f_loadfromfile)
|
|
||||||
load_data(m, DATA_FILE);
|
|
||||||
|
|
||||||
if (f_flag == -1) {
|
if (f_flag == -1) {
|
||||||
msg = "You passed '-f' without giving an argument. Defaulting to 'data' for a keyfile...";
|
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);
|
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);
|
execute(ctx->history, self, m, "/help", GLOBAL_COMMAND_MODE);
|
||||||
|
|
||||||
wmove(ctx->history, y2-1, 2);
|
wmove(ctx->history, y2-1, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user