kivy: use on_state instead of on_release

This commit is contained in:
ThomasV 2018-12-20 12:19:54 +01:00
parent 58a9fa0ad5
commit 96b66b7e4f

View file

@ -238,7 +238,7 @@
padding: dp(12)
spacing: dp(5)
screen: None
on_release:
on_state:
self.screen.show_menu(args[0]) if self.state == 'down' else self.screen.hide_menu()
canvas.before:
Color: