Merge pull request #592 from mattrose/fix-prefs-setcolor

More fixes to the Color pickers in the Preferences Editor
This commit is contained in:
Matt Rose 2022-04-18 13:24:28 -04:00 committed by GitHub
commit d33c145ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1693,12 +1693,8 @@ class PrefsEditor:
fore = guiget('foreground_colorbutton')
back = guiget('background_colorbutton')
if value == 'custom':
fore.set_sensitive(True)
back.set_sensitive(True)
else:
fore.set_sensitive(False)
back.set_sensitive(False)
fore.set_sensitive(True)
back.set_sensitive(True)
forecol = None
backcol = None