Don't prelight when toggled
This commit is contained in:
parent
261a7e743f
commit
0dfec679d7
@ -63,7 +63,7 @@ class ToggleIconButton(IconButton, hippo.CanvasItem):
|
|||||||
return IconButton.do_button_press_event(self, event)
|
return IconButton.do_button_press_event(self, event)
|
||||||
|
|
||||||
def prelight(self, enter):
|
def prelight(self, enter):
|
||||||
if enter:
|
if enter and not self._toggled:
|
||||||
IconButton.prelight(self, enter)
|
IconButton.prelight(self, enter)
|
||||||
else:
|
else:
|
||||||
self.props.background_color = self._get_bg_color()
|
self.props.background_color = self._get_bg_color()
|
||||||
|
Loading…
Reference in New Issue
Block a user