Skip to content

Commit

Permalink
fixed reset button to *also* reset the kivy built-in setting options
Browse files Browse the repository at this point in the history
 * #16
  • Loading branch information
maltfield committed Jun 11, 2023
1 parent a4b6837 commit fbfa7fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/buskill_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,13 @@ def refresh_values(self):
for widget in self.settings_content.walk():

# is this widget a BusKillSettingComplexOptions object?
if isinstance( widget, BusKillSettingComplexOptions ):
#if isinstance( widget, BusKillSettingComplexOptions ):
if isinstance( widget, BusKillSettingComplexOptions ) \
or isinstance( widget, kivy.uix.settings.SettingBoolean ) \
or isinstance( widget, kivy.uix.settings.SettingNumeric ) \
or isinstance( widget, kivy.uix.settings.SettingOptions ) \
or isinstance( widget, kivy.uix.settings.SettingString ) \
or isinstance( widget, kivy.uix.settings.SettingPath ):

# get the key for this SettingItem
key = widget.key
Expand Down

0 comments on commit fbfa7fa

Please sign in to comment.