mirror of https://github.com/kivy/kivy.git
uix:ActionBar:ActionGroup bind to `on_dismiss` events of the dropdown
This commit is contained in:
parent
788f0cdd05
commit
3c98ac717c
|
@ -272,9 +272,11 @@ class ActionGroup(ActionItem, Spinner):
|
|||
|
||||
def _build_dropdown(self, *largs):
|
||||
if self._dropdown:
|
||||
self._dropdown.unbind(on_dismiss=self._toggle_dropdown)
|
||||
self._dropdown.dismiss()
|
||||
self._dropdown = None
|
||||
self._dropdown = self.dropdown_cls()
|
||||
self._dropdown.bind(on_dismiss=self._toggle_dropdown)
|
||||
|
||||
def _update_dropdown(self, *largs):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue