Fix Ncurses Exitflag;

This commit is contained in:
lwvmobile
2023-07-01 22:06:49 -04:00
parent 3fc983f273
commit 412cb26c0f

View File

@@ -1728,7 +1728,7 @@ void ncursesMenu (dsd_opts * opts, dsd_state * state)
} }
if (choice == 20) if (choice == 20)
{ {
cleanupAndExit (opts, state); exitflag = 1;
} }
if(choice != 0 && choice != 20) /* User did a choice come out of the infinite loop */ if(choice != 0 && choice != 20) /* User did a choice come out of the infinite loop */
@@ -3409,7 +3409,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
if (c == 113) //'q' key, quit if (c == 113) //'q' key, quit
{ {
cleanupAndExit (opts, state); exitflag = 1;
} }
if (c == 52) // '4' key, toggle force privacy key over fid and svc (dmr) if (c == 52) // '4' key, toggle force privacy key over fid and svc (dmr)
@@ -3579,7 +3579,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
opts->audio_in_type = 0; opts->audio_in_type = 0;
openPulseInput(opts); openPulseInput(opts);
} }
else opts->audio_in_type = 5;//cleanupAndExit(opts, state); else opts->audio_in_type = 5; //exitflag = 1;
} }
#endif #endif