From 24730ee3daf1c1f240c5c8dd8ca375de263ae442 Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Sun, 2 Jan 2022 21:45:21 -0800 Subject: [PATCH] removed step --- src/modules/external_interface.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/external_interface.rs b/src/modules/external_interface.rs index 608fa34..3114005 100644 --- a/src/modules/external_interface.rs +++ b/src/modules/external_interface.rs @@ -46,7 +46,7 @@ impl Hotkeys { SubScenes::ScreenWithLowerRight => {self.hotkeys["hotkeys"]["obs"]["Screen_Bottom_Right"].as_str().unwrap()}, } } - + pub fn send_obs(&self, hotkey: &str) { if cfg!(target_family = "windows") { Command::new(String::from(AHK_FILES_FOLDER) + "send_obs_back_to_propre.exe") @@ -108,11 +108,10 @@ impl Hotkeys { } pub fn toggle_computer_sound(&self, value: bool) { - let direction: u8 = if value {1} else {0}; let time_delay = self.hotkeys["general"]["music_fade_time"].as_i64().unwrap(); if cfg!(target_family = "windows") { Command::new(String::from(AHK_FILES_FOLDER) + "music_toggle.exe") - .arg(direction.to_string()) + .arg((value as u8).to_string()) .arg(time_delay.to_string()) .spawn() .expect("next_slide process call failed");