no need to go to custom to set custom palette

This commit is contained in:
amaan khan 2022-04-16 12:05:29 +05:30
parent 978e0c9fd8
commit ed93ccb7e5
1 changed files with 2 additions and 6 deletions

View File

@ -966,10 +966,6 @@ class PrefsEditor:
if self.palettevalues[key] == active: if self.palettevalues[key] == active:
value = key value = key
sensitive = value == 'custom'
for palette_id in range(0, NUM_PALETTE_COLORS):
self.get_palette_widget(palette_id).set_sensitive(sensitive)
if value in self.palettes: if value in self.palettes:
palette = self.palettes[value] palette = self.palettes[value]
palettebits = palette.split(':') palettebits = palette.split(':')
@ -1726,8 +1722,8 @@ class PrefsEditor:
for widget in [scheme, fore, back]: for widget in [scheme, fore, back]:
widget.set_sensitive(False) widget.set_sensitive(False)
else: else:
scheme.set_sensitive(True) scheme.set_sensitive(True)
self.on_color_scheme_combobox_changed(scheme) self.on_color_scheme_combobox_changed(scheme)
self.config['use_theme_colors'] = active self.config['use_theme_colors'] = active
self.config.save() self.config.save()