Skip to content

Commit 5429d00

Browse files
committedFeb 5, 2025
jalv_console: Run command line interaction together with UI.
After 0991714 it is possible to start the command line thread separately from the UI, it just didn't check for this condition upon starting. By splitting the two checks we allow for both the command line and graphical interface to be accessible at the same time. Signed-off-by: Kristian Amlie <kristian@amlie.name>
1 parent df0ee5b commit 5429d00

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/jalv_console.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,11 @@ jalv_frontend_select_plugin(Jalv* jalv)
235235
int
236236
jalv_frontend_open(Jalv* jalv)
237237
{
238-
if (!jalv_run_custom_ui(jalv) && !jalv->opts.non_interactive) {
238+
if (!jalv->opts.non_interactive) {
239239
init_cli_thread(jalv);
240+
}
241+
242+
if (!jalv_run_custom_ui(jalv)) {
240243
while (zix_sem_try_wait(&jalv->done)) {
241244
jalv_update(jalv);
242245
usleep(30000);

0 commit comments

Comments
 (0)