mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
ce5d9b102a
commit
619665880a
@ -133,11 +133,12 @@ def commit_layout(onchange, container):
|
||||
if rm is not crm:
|
||||
was_changed = True
|
||||
sd.set('read_mode', crm)
|
||||
fs = sd.get('fullscreen_when_opening')
|
||||
cfs = document.querySelector(f'#{FS_MODE} input[name="fullscreen_when_opening"]:checked').value
|
||||
if cfs is not fs:
|
||||
was_changed = True
|
||||
sd.set('fullscreen_when_opening', cfs)
|
||||
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:
|
||||
was_changed = True
|
||||
sd.set('fullscreen_when_opening', cfs)
|
||||
cps = sd.get('columns_per_screen')
|
||||
cps = {'portrait': cps.portrait, 'landscape': cps.landscape}
|
||||
for which in ('portrait', 'landscape'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user