Skip to content

Commit

Permalink
applications: Allow disabling category hover
Browse files Browse the repository at this point in the history
When disabling the categories hover option, the code ignores the setting
and continues filtering on focus. Moving the focus event handler inside
the option conditional fixes the behaviour.
  • Loading branch information
vkareh authored and flexiondotorg committed Feb 23, 2022
1 parent 006e433 commit 9504cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mate_menu/plugins/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -1454,11 +1454,11 @@ def updateBoxes( self, menu_has_changed ):
startId = item["button"].connect( "enter", self.StartFilter, item["filter"] )
stopId = item["button"].connect( "leave", self.StopFilter )
item["button"].mouseOverHandlerIds = ( startId, stopId )
item["button"].connect( "focus-in-event", self.categoryBtnFocus, item["filter"] )
else:
item["button"].mouseOverHandlerIds = None

item["button"].connect( "clicked", self.FilterAndClear, item["filter"] )
item["button"].connect( "focus-in-event", self.categoryBtnFocus, item["filter"] )
item["button"].show()

self.categoryList.append( item )
Expand Down

0 comments on commit 9504cdf

Please sign in to comment.