From e643530bd7a3584f571a8aef6015e391f836e67a Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Mon, 18 Nov 2024 15:02:18 -0600 Subject: [PATCH] update --- .gitignore | 2 ++ src/main.rs | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ea8c4bf..2168085 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /target +/debug +/release diff --git a/src/main.rs b/src/main.rs index 7002e16..bfcc730 100644 --- a/src/main.rs +++ b/src/main.rs @@ -48,7 +48,8 @@ impl APMTracker { fn should_quit(&self) -> bool { let keys = self.device_state.get_keys(); - keys.contains(&Keycode::LControl) && keys.contains(&Keycode::Q) + (keys.contains(&Keycode::LControl) && keys.contains(&Keycode::Q)) || + (keys.contains(&Keycode::LAlt) && keys.contains(&Keycode::F4)) } } @@ -84,7 +85,9 @@ fn main() -> Result<(), eframe::Error> { .with_inner_size([100.0, 50.0]) .with_decorations(false) .with_transparent(true) - .with_always_on_top(), + .with_always_on_top() + .with_window_level(egui::WindowLevel::AlwaysOnTop) + .with_app_id("apm_tracker"), ..Default::default() };