Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Oct 3, 2023
1 parent 805aefd commit 12395df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src-tauri/src/utils/hotkey/hotkey_listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn init_hotkey_listener() -> () {
}

pub async fn parse_hotkey_event(key: &Key) {
let event: Result<HotkeyEvent, ()> = key.event.parse::<HotkeyEvent>();
let event = key.event.parse::<HotkeyEvent>();

match event {
Ok(HotkeyEvent::WindowDisplayToggle) => toggle_main_window(),
Expand All @@ -66,9 +66,7 @@ pub async fn parse_hotkey_event(key: &Key) {
Ok(HotkeyEvent::About) => {
// Handle About event
}
Ok(HotkeyEvent::Exit) => {
// Handle Exit event
}
Ok(HotkeyEvent::Exit) => APP.get().unwrap().exit(1),
Ok(
HotkeyEvent::RecentClipboard
| HotkeyEvent::StarredClipboard
Expand Down

0 comments on commit 12395df

Please sign in to comment.