Fix #1909197 [cannot change layout settings in calibre 5.8, especially from single page to multiple page view.](https://bugs.launchpad.net/calibre/+bug/1909197)

This commit is contained in:
Kovid Goyal 2020-12-24 16:16:45 +05:30
parent ce5d9b102a
commit 619665880a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -133,6 +133,7 @@ def commit_layout(onchange, container):
if rm is not crm:
was_changed = True
sd.set('read_mode', crm)
if not runtime.is_standalone_viewer:
fs = sd.get('fullscreen_when_opening')
cfs = document.querySelector(f'#{FS_MODE} input[name="fullscreen_when_opening"]:checked').value
if cfs is not fs: