Skip to content

Commit

Permalink
Warn user about using auto pause and stop together
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostNaN committed Aug 4, 2024
1 parent a445391 commit 8d0935b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,11 +949,19 @@ static void parse_command_line(int argc, char **argv, struct wl_state *state) {
break;
case 'p':
halt_info.auto_pause = 1;
halt_info.auto_stop = 0;

if (halt_info.auto_stop) {
cflp_warning("You cannot use auto-stop and auto-pause together");
halt_info.auto_stop = 0;
}
break;
case 's':
halt_info.auto_stop = 1;
halt_info.auto_pause = 0;

if (halt_info.auto_pause) {
cflp_warning("You cannot use auto-pause and auto-stop together");
halt_info.auto_pause = 0;
}
break;
case 'n':
SLIDESHOW_TIME = atoi(optarg);
Expand Down

0 comments on commit 8d0935b

Please sign in to comment.