Skip to content

Commit

Permalink
Fixes wrong value check for buttons, fixes Rayrsn#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayrsn committed Apr 3, 2023
1 parent f2ccc77 commit ddecfe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ For more information try --help");
exit(1);
}

if (button_text_1 == "__None" && button_text_2 !="") || (button_url_1 == "__None" && button_url_2 !=""){
if (button_text_1 == "__None" && button_text_2 !="__None") || (button_url_1 == "__None" && button_url_2 !="__None"){
println!("{}{}","error: ".red().bold(),"Replace button 2 with button 1.");
println!("button_text_1: {} button_url_1: {} button_text_2: {} button_url_2: {}",button_text_1,button_url_1,button_text_2,button_url_2);
exit(1)
}
if (enable_time == true && args.start_time != -1) || (enable_time == true && args.end_time != -1) {
Expand Down

0 comments on commit ddecfe7

Please sign in to comment.