mirror of
https://github.com/kivy/kivy.git
synced 2025-02-26 20:46:29 +00:00
Removed special calls to check selection.
This commit is contained in:
parent
9f26e72582
commit
569c82b07d
@ -11,7 +11,6 @@ from kivy.properties import ListProperty, StringProperty, ObjectProperty
|
||||
|
||||
# Generic list item will do fine for both list views:
|
||||
|
||||
|
||||
class ListItem(SelectableItem, Button):
|
||||
selected_color = ListProperty([1., 0., 0., 1])
|
||||
deselected_color = None
|
||||
@ -127,19 +126,6 @@ class CascadingView(GridLayout):
|
||||
size_hint=(.6, 1.0))
|
||||
self.add_widget(self.detail_view)
|
||||
|
||||
# Manually re-initialize selection of fruit category to fire updates
|
||||
# to observing views in the chain:
|
||||
#
|
||||
# fruit categories list -> fruits list -> detail view
|
||||
#
|
||||
# These lists are set up for auto-selection, but the dispatching
|
||||
# that happens on instantiation would have already fired.
|
||||
#
|
||||
self.fruit_categories_list_adapter.check_for_empty_selection()
|
||||
|
||||
# [TODO] Why is this call also needed?
|
||||
self.fruits_list_adapter.check_for_empty_selection()
|
||||
|
||||
# Data from http://www.fda.gov/Food/LabelingNutrition/\
|
||||
# FoodLabelingGuidanceRegulatoryInformation/\
|
||||
# InformationforRestaurantsRetailEstablishments/\
|
||||
|
Loading…
x
Reference in New Issue
Block a user