Skip to content

Commit

Permalink
Merge pull request #64 from nus-vv-streams/fix/show-control
Browse files Browse the repository at this point in the history
Rename --controls to --hide-control-panel
  • Loading branch information
weitsang authored May 29, 2024
2 parents 59bd207 + 38719e5 commit 1e6cb8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bin/vvplay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ struct Args {
#[clap(short = 'H', long, default_value_t = 900)]
height: u32,

#[clap(long = "controls", default_value_t = true)]
show_controls: bool,
#[clap(long = "hide-control-panel", default_value_t = false)]
hide_controls: bool,

#[clap(short, long)]
buffer_size: Option<u8>,
Expand Down Expand Up @@ -108,7 +108,7 @@ fn main() {
args.bg_color.to_str().unwrap(),
));

if args.show_controls {
if !args.hide_controls {
let controls = builder.add_window(Controller { slider_end });
builder
.get_windowed_mut(render)
Expand Down

0 comments on commit 1e6cb8c

Please sign in to comment.