Fix #1897136 [Viewer: Default values for the numbers of pages per screen aren't restored](https://bugs.launchpad.net/calibre/+bug/1897136)

This commit is contained in:
Kovid Goyal 2020-09-25 07:49:09 +05:30
parent 2967f13297
commit bba090a7b3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -108,6 +108,7 @@ def commit_layout(onchange, container):
was_changed = True
sd.set('read_mode', crm)
cps = sd.get('columns_per_screen')
cps = {'portrait': cps.portrait, 'landscape': cps.landscape}
for which in ('portrait', 'landscape'):
inp = element(COLS, 'input[name={}]'.format(which))
try: