Removed special calls to check selection.

This commit is contained in:
Jeff Pittman 2012-07-29 13:59:15 -05:00
parent 9f26e72582
commit 569c82b07d

View File

@ -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/\