From 0963f84f098c300cd35a9d19a3692beb730726b7 Mon Sep 17 00:00:00 2001 From: SpikeHD <25207995+SpikeHD@users.noreply.github.com> Date: Tue, 26 Nov 2024 12:49:02 -0800 Subject: [PATCH] fix: fmt --- src-tauri/src/functionality/streamer_mode.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/functionality/streamer_mode.rs b/src-tauri/src/functionality/streamer_mode.rs index 711e0a2..e3be2a3 100644 --- a/src-tauri/src/functionality/streamer_mode.rs +++ b/src-tauri/src/functionality/streamer_mode.rs @@ -22,10 +22,7 @@ pub fn start_streamer_mode_watcher(win: tauri::WebviewWindow) { std::thread::spawn(move || loop { std::thread::sleep(std::time::Duration::from_secs(2)); - system.refresh_processes( - ProcessesToUpdate::All, - true - ); + system.refresh_processes(ProcessesToUpdate::All, true); let mut obs_running = false; @@ -34,8 +31,16 @@ pub fn start_streamer_mode_watcher(win: tauri::WebviewWindow) { for process in system.processes().values() { std::thread::sleep(std::time::Duration::from_millis(5)); - if process.name().to_ascii_lowercase().to_string_lossy().contains("obs64") - || process.name().to_ascii_lowercase().to_string_lossy().contains("streamlabs") + if process + .name() + .to_ascii_lowercase() + .to_string_lossy() + .contains("obs64") + || process + .name() + .to_ascii_lowercase() + .to_string_lossy() + .contains("streamlabs") { // If OBS is running, we can break out of the loop and emit the event obs_running = true;