Small building oopsies
This commit is contained in:
parent
87ee26e8ed
commit
48d62ec2ab
2 changed files with 3 additions and 3 deletions
|
@ -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 config;
|
||||
pub mod program_status;
|
||||
|
|
|
@ -6,11 +6,11 @@ use windows::Win32::{
|
|||
pub fn get_running_program(apps: &Apps) -> Option<(&App, String)> {
|
||||
let running_window_names = unsafe { get_running_windows_titles() };
|
||||
for window_name in running_window_names {
|
||||
dbg!(&window_name);
|
||||
//dbg!(&window_name);
|
||||
if let Some(app) = apps.find_app(&window_name) {
|
||||
if !window_name.contains("- Google Chrome") {
|
||||
//So googling it won't affect the DRP lol
|
||||
//return Some((&app, app.parse(&window_name)));
|
||||
return Some((&app, app.parse(&window_name)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue