Skip to content

Commit

Permalink
try to conversion operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Borber committed Jan 26, 2024
1 parent df9a9fd commit d3c7e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn handler(app: &mut App) -> Result<(), Box<dyn Error>> {
let now_sec = timestamp.as_secs();
let now_milli = timestamp.subsec_millis();

if now_sec - old_sec == 0 || now_sec - old_sec == 1 && now_milli < old_milli {
if now_sec == old_sec || now_sec == old_sec + 1 && now_milli < old_milli {
shortcut::show(&panel).expect("Shortcut key call failed")
}

Expand Down

0 comments on commit d3c7e7a

Please sign in to comment.