From 619665880a58fe334412ae57831211a52aba4b19 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 24 Dec 2020 16:16:45 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/prefs/layout.pyj | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pyj/read_book/prefs/layout.pyj b/src/pyj/read_book/prefs/layout.pyj index c7ba38036b..6531761158 100644 --- a/src/pyj/read_book/prefs/layout.pyj +++ b/src/pyj/read_book/prefs/layout.pyj @@ -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'):