Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Nov 18, 2024
1 parent 1e96552 commit e643530
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target
/debug
/release
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down Expand Up @@ -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()
};

Expand Down

0 comments on commit e643530

Please # to comment.