From 27555740b39e6160bfadf08e9bd1cfa025d48810 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Thu, 29 Aug 2013 19:43:24 +0200 Subject: [PATCH] This fixes the issue where another instance of terminator can overwrite config changes you make. Makes setting up layouts more usable. --- terminatorlib/config.py | 5 +++++ terminatorlib/prefseditor.py | 1 + 2 files changed, 6 insertions(+) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index b1feaf10..f122287a 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -620,6 +620,11 @@ class ConfigBase(Borg): section_name) self.loaded = True + + def reload(self): + """Force a reload of the base config""" + self.loaded = False + self.load() def save(self): """Save the config to a file""" diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index a5f09c49..bbc063b7 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -149,6 +149,7 @@ class PrefsEditor: def __init__ (self, term): self.config = config.Config() + self.config.base.reload() self.term = term self.builder = gtk.Builder() self.keybindings = Keybindings()