diff --git a/src/main.rs b/src/main.rs index 9d65ddc..6de582c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,7 +100,6 @@ fn main() { // another frame next frame, or if it can safely skip drawing to save battery and cpu power. // Multiple other parts of the app "queue_next_frame" function to ensure animations continue // properly or updates to the graphics are pushed to the screen. - println!("This is a test"); if std::env::args().any(|arg| arg == "--version" || arg == "-v") { attach_parent_console(); diff --git a/src/windows_utils.rs b/src/windows_utils.rs index 75ac405..52d8a69 100644 --- a/src/windows_utils.rs +++ b/src/windows_utils.rs @@ -215,6 +215,7 @@ pub fn register_rightclick_file() -> bool { } pub fn attach_parent_console() { + #[cfg(target_os = "windows")] unsafe { AttachConsole(ATTACH_PARENT_PROCESS); }