From 85dfe5c403b3edd8db05d83ec97b0c09a06ea2d0 Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Fri, 9 Feb 2018 11:28:21 -0500 Subject: [PATCH] add special code to migrate tabs.persist_mode_on_change setting to tabs.mode_on_change. --- qutebrowser/config/configfiles.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qutebrowser/config/configfiles.py b/qutebrowser/config/configfiles.py index 77b5190ce..7b1a26e71 100644 --- a/qutebrowser/config/configfiles.py +++ b/qutebrowser/config/configfiles.py @@ -180,6 +180,14 @@ class YamlConfig(QObject): log.config.debug("Removing {}".format(name)) del self._values[name] + persist = 'tabs.persist_mode_on_change' + if persist in self._values: + if self._values[persist]: + self._values['tabs.mode_on_change'] = 'persist' + else: + self._values['tabs.mode_on_change'] = 'normal' + del self._values[persist] + def _validate(self): """Make sure all settings exist.""" unknown = set(self._values) - set(configdata.DATA)