From dea12340f671231989bc7f532d6f93c0cd1fc0fb Mon Sep 17 00:00:00 2001 From: Vishweshwar Saran Singh Deo Date: Wed, 11 Dec 2024 21:14:42 +0530 Subject: [PATCH] -[bug 949] #949 its reported in the issue that the save button in layout overrides the profile, custom command, working dir. The same does not happen when close button is pressed or pref window is closed. In my observation,I have seem that the profile is overwritten, but custom command and wording dir are updated. The updation of working dir and custom command when editing without save button seems a bit different but I haven't changed that part for now. For sake of consistency I have ensured the updatation of profile (which anyways gets updated from drop down menu) but is over written by save button, happens when save button is pressed. --- terminatorlib/prefseditor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index db22f6a0..6b0b7002 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -1625,6 +1625,7 @@ def on_layoutrefreshbutton_clicked(self, _button): self.config.copy_layout_item(config_layout, current_layout, 'directory') self.config.copy_layout_item(config_layout, current_layout, 'command') + self.config.copy_layout_item(config_layout, current_layout, 'profile') dbg("updated layout from terminator:(%s)" % current_layout) if self.config.replace_layout(name, current_layout):