Read backend after args.temp_settings
This should hopefully not affect any config change handlers, as almost nothing is registered this early. Fixes #3340
This commit is contained in:
parent
b407f4ab41
commit
ca74991900
@ -104,6 +104,7 @@ Fixed
|
|||||||
- Fixed crash when opening `qute://help/img`
|
- Fixed crash when opening `qute://help/img`
|
||||||
- Fixed `gU` (`:navigate up`) on `qute://help` and webservers not handling `..`
|
- Fixed `gU` (`:navigate up`) on `qute://help` and webservers not handling `..`
|
||||||
in a URL.
|
in a URL.
|
||||||
|
- Using e.g. `-s backend webkit` to set the backend now works correctly.
|
||||||
|
|
||||||
Deprecated
|
Deprecated
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
@ -66,14 +66,14 @@ def early_init(args):
|
|||||||
|
|
||||||
configfiles.init()
|
configfiles.init()
|
||||||
|
|
||||||
objects.backend = get_backend(args)
|
|
||||||
|
|
||||||
for opt, val in args.temp_settings:
|
for opt, val in args.temp_settings:
|
||||||
try:
|
try:
|
||||||
config.instance.set_str(opt, val)
|
config.instance.set_str(opt, val)
|
||||||
except configexc.Error as e:
|
except configexc.Error as e:
|
||||||
message.error("set: {} - {}".format(e.__class__.__name__, e))
|
message.error("set: {} - {}".format(e.__class__.__name__, e))
|
||||||
|
|
||||||
|
objects.backend = get_backend(args)
|
||||||
|
|
||||||
configtypes.Font.monospace_fonts = config.val.fonts.monospace
|
configtypes.Font.monospace_fonts = config.val.fonts.monospace
|
||||||
config.instance.changed.connect(_update_monospace_fonts)
|
config.instance.changed.connect(_update_monospace_fonts)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user