Skip to content

Commit

Permalink
duplicated the same code for the fonts for the triggers
Browse files Browse the repository at this point in the history
now the triggers appears, but the option items are broken still until we figure out how to access the property object from within the __init__() function
  • Loading branch information
maltfield committed Mar 18, 2024
1 parent 7047f5f commit 503cf2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/buskill_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,10 @@ def _choose_settings_screen(self, instance):

# create an OptionItem for each of the possible values for this
# setting option, and add them to the new ComplexOption sub-screen
option_item = BusKillOptionItem( title = self.key, value = value, desc = desc, confirmation = confirmation, icon = icon, parent_option = self, manager = manager )
setting_screen.content.add_widget( option_item )
#option_item = BusKillOptionItem( title = self.key, value = value, desc = desc, confirmation = confirmation, icon = icon, parent_option = self, manager = manager )
option_item = [{'title': self.key, 'value': value, 'icon':icon, 'desc': desc, 'confirmation': confirmation, 'parent_option': self, 'manager': manager }]
#setting_screen.content.add_widget( option_item )
setting_screen.rv.data.extend(option_item)

# handle the "font" option
if self.key == 'font':
Expand Down

0 comments on commit 503cf2a

Please sign in to comment.