From 9ded8988adfcbf10863a050db08f77a760d8062e Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sat, 14 Aug 2021 17:10:38 +0200 Subject: [PATCH] When "Use default colors" is unchecked, save the current values --- terminatorlib/prefseditor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 5f195d63..f5055b64 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -1170,6 +1170,11 @@ class PrefsEditor: guiget('cursor_fg_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.save()