Skip to content

Commit 658d1d1

Browse files
author
Deren Vural
committed
updated processor test button with constructor args
Signed-off-by: Deren Vural <[email protected]>
1 parent 4923dcd commit 658d1d1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,13 @@ fn build_ui(app: &Application) {
123123
.build();
124124
// Connect to "clicked" signal of `button`
125125
button3.connect_clicked(move |_| {
126-
let p: Processor = Processor::new("Nvidia Settings");//,"nvidia-settings","-t");
126+
let p: Processor = Processor::new("nvidia-settings", "-q GpuUUID -t");
127+
128+
//NOTE: Leaving this here for future use..
129+
//p.set_property("base-call", "nvidia-settings");
130+
//p.set_property("call", "nvidia-settings");
131+
//p.set_property("tail-call", "t");
132+
127133
match p.process() {
128134
Ok(output) => match output {
129135
Some(valid_output) => println!("Process suceeded, returning: `{}`", valid_output),

0 commit comments

Comments
 (0)