From 38719e596e5e8120f4c2cfb89b08ab94031b2fc9 Mon Sep 17 00:00:00 2001 From: Wei Tsang Ooi Date: Thu, 30 May 2024 01:35:05 +0800 Subject: [PATCH] Change --controls to --hide-control-panel --- src/bin/vvplay.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/vvplay.rs b/src/bin/vvplay.rs index cf64fdf..0bc098c 100644 --- a/src/bin/vvplay.rs +++ b/src/bin/vvplay.rs @@ -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, @@ -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)