Skip to content

Commit

Permalink
hide the menu window when clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Feb 13, 2024
1 parent 22934fb commit fe2db75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/fluent_tray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,12 @@ namespace fluent_tray
if(menu.is_toggleable()) {
// Update the toggle menu for checkmark
if(!InvalidateRect(menu.window_handle(), NULL, TRUE)) {
return false ;
return FALSE ;
}
}
else {
if(!self->hide_menu_window()) {
return FALSE ;
}
}
return TRUE ;
Expand Down

0 comments on commit fe2db75

Please sign in to comment.