Fix migration of scrolling.bar

This commit is contained in:
Florian Bruhin 2019-01-11 11:23:58 +01:00
parent 2c1d039c9e
commit cc0f5fc6d4
3 changed files with 7 additions and 1 deletions

View File

@ -70,6 +70,8 @@ Fixed
- `:navigate` not incrementing in anchors or queries or anchors.
- Crash when trying to use a proxy requiring authentication with QtWebKit.
- Slashes in search terms are now percent-escaped.
- When `scrolling.bar = True` was set in versions before v1.5.0, this now
correctly gets migrated to `always` instead of `when-searching`.
v1.5.2
------

View File

@ -308,7 +308,7 @@ class YamlConfig(QObject):
self._migrate_bool(settings, 'tabs.favicons.show', 'always', 'never')
self._migrate_bool(settings, 'scrolling.bar',
'when-searching', 'never')
'always', 'when-searching')
self._migrate_bool(settings, 'qt.force_software_rendering',
'software-opengl', 'none')

View File

@ -255,6 +255,10 @@ class TestYaml:
('tabs.favicons.show', False, 'never'),
('tabs.favicons.show', 'always', 'always'),
('scrolling.bar', True, 'always'),
('scrolling.bar', False, 'when-searching'),
('scrolling.bar', 'always', 'always'),
('qt.force_software_rendering', True, 'software-opengl'),
('qt.force_software_rendering', False, 'none'),
('qt.force_software_rendering', 'chromium', 'chromium'),