From e6b52f812720b7f64fd8c491c26fedbfdb436e6f Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Sun, 10 Jan 2021 22:18:01 -0800 Subject: [PATCH] fix linux and mac builds --- src/main.rs | 1 - src/windows_utils.rs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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); }