Small building oopsies

This commit is contained in:
Djkato 2022-09-09 22:11:57 +02:00
parent 87ee26e8ed
commit 48d62ec2ab
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
//#![windows_subsystem = "windows"] //UNCOMMENT ONLY WHEN BUILDING FOR RELEASE TO NOT SHOW TERMINAL WINDOW! #![windows_subsystem = "windows"] //UNCOMMENT ONLY WHEN BUILDING FOR RELEASE TO NOT SHOW TERMINAL WINDOW!
pub mod app; pub mod app;
pub mod config; pub mod config;
pub mod program_status; pub mod program_status;

View file

@ -6,11 +6,11 @@ use windows::Win32::{
pub fn get_running_program(apps: &Apps) -> Option<(&App, String)> { pub fn get_running_program(apps: &Apps) -> Option<(&App, String)> {
let running_window_names = unsafe { get_running_windows_titles() }; let running_window_names = unsafe { get_running_windows_titles() };
for window_name in running_window_names { for window_name in running_window_names {
dbg!(&window_name); //dbg!(&window_name);
if let Some(app) = apps.find_app(&window_name) { if let Some(app) = apps.find_app(&window_name) {
if !window_name.contains("- Google Chrome") { if !window_name.contains("- Google Chrome") {
//So googling it won't affect the DRP lol //So googling it won't affect the DRP lol
//return Some((&app, app.parse(&window_name))); return Some((&app, app.parse(&window_name)));
} }
} }
} }