When "Use default colors" is unchecked, save the current values

This commit is contained in:
Vulcalien 2021-08-14 17:10:38 +02:00
parent 880a15d5d3
commit 9ded8988ad
1 changed files with 5 additions and 0 deletions

View File

@ -1170,6 +1170,11 @@ class PrefsEditor:
guiget('cursor_fg_color').set_sensitive(not value) guiget('cursor_fg_color').set_sensitive(not value)
guiget('cursor_bg_color').set_sensitive(not value) guiget('cursor_bg_color').set_sensitive(not value)
if not value:
self.config['cursor_fg_color'] = color2hex(guiget('cursor_fg_color'))
self.config['cursor_bg_color'] = color2hex(guiget('cursor_bg_color'))
self.config.save()
self.config['cursor_color_default'] = value self.config['cursor_color_default'] = value
self.config.save() self.config.save()