parent
e003b11670
commit
2a65cadb67
@ -104,7 +104,9 @@ def _update_monospace_fonts():
|
|||||||
continue
|
continue
|
||||||
elif not isinstance(opt.typ, configtypes.Font):
|
elif not isinstance(opt.typ, configtypes.Font):
|
||||||
continue
|
continue
|
||||||
elif not config.instance.get_obj(name).endswith(' monospace'):
|
|
||||||
|
value = config.instance.get_obj(name)
|
||||||
|
if value is None or not value.endswith(' monospace'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
config.instance.changed.emit(name)
|
config.instance.changed.emit(name)
|
||||||
|
@ -258,6 +258,15 @@ class TestEarlyInit:
|
|||||||
# Font subclass, but doesn't end with "monospace"
|
# Font subclass, but doesn't end with "monospace"
|
||||||
assert 'fonts.web.family.standard' not in changed_options
|
assert 'fonts.web.family.standard' not in changed_options
|
||||||
|
|
||||||
|
def test_setting_monospace_fonts_family(self, init_patch, args):
|
||||||
|
"""Make sure setting fonts.monospace after a family works.
|
||||||
|
|
||||||
|
See https://github.com/qutebrowser/qutebrowser/issues/3130
|
||||||
|
"""
|
||||||
|
configinit.early_init(args)
|
||||||
|
config.instance.set_str('fonts.web.family.standard', '')
|
||||||
|
config.instance.set_str('fonts.monospace', 'Terminus')
|
||||||
|
|
||||||
def test_force_software_rendering(self, monkeypatch, config_stub):
|
def test_force_software_rendering(self, monkeypatch, config_stub):
|
||||||
"""Setting force_software_rendering should set the environment var."""
|
"""Setting force_software_rendering should set the environment var."""
|
||||||
envvar = 'QT_XCB_FORCE_SOFTWARE_OPENGL'
|
envvar = 'QT_XCB_FORCE_SOFTWARE_OPENGL'
|
||||||
|
Loading…
Reference in New Issue
Block a user