mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Validate saved value
This commit is contained in:
parent
4a3f3dd7d2
commit
2ccfa5140e
@ -99,6 +99,8 @@ def create_layout_panel(container, apply_func, cancel_func):
|
||||
if not runtime.is_standalone_viewer:
|
||||
name = 'fullscreen_when_opening'
|
||||
val = sd.get(name)
|
||||
if 'auto always never'.split(' ').indexOf(val or '') < 0:
|
||||
val = defaults.fullscreen_when_opening
|
||||
container.appendChild(E.div(
|
||||
E.div(style='margin: 1ex 2rem', id=FS_MODE,
|
||||
_('When opening a book enter fullscreen:'), ' ',
|
||||
|
Loading…
x
Reference in New Issue
Block a user