Skip to content

Commit 064fdb6

Browse files
Removed warning on TranslateMessage
1 parent 20fbc4c commit 064fdb6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

daemon/src/tray/windows.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ fn run_loop(msg_window: HWND, state: DaemonState) {
104104
if GetMessageW(msg.as_mut_ptr(), msg_window, 0, 0) != FALSE {
105105
let msg = msg.assume_init();
106106

107-
if TranslateMessage(&msg) == FALSE {
108-
warn!("Unable to Translate Message, proceeding anyway");
109-
}
107+
let _ = TranslateMessage(&msg);
110108
DispatchMessageW(&msg);
111109
}
112110

0 commit comments

Comments
 (0)