mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ebook viewer: Add command line option to start in full screen mode
This commit is contained in:
parent
ecb6ef0aef
commit
404a5080a9
@ -695,6 +695,9 @@ def config(defaults=None):
|
||||
c.add_opt('raise_window', ['--raise-window'], default=False,
|
||||
help=_('If specified, viewer window will try to come to the '
|
||||
'front when started.'))
|
||||
c.add_opt('full_screen', ['--full-screen', '--fullscreen', '-f'], default=False,
|
||||
help=_('If specified, viewer window will try to open '
|
||||
'full screen when started.'))
|
||||
c.add_opt('remember_window_size', default=False,
|
||||
help=_('Remember last used window size'))
|
||||
c.add_opt('debug_javascript', ['--debug-javascript'], default=False,
|
||||
@ -726,6 +729,8 @@ def main(args=sys.argv):
|
||||
main.show()
|
||||
if opts.raise_window:
|
||||
main.raise_()
|
||||
if opts.full_screen:
|
||||
main.action_full_screen.trigger()
|
||||
with main:
|
||||
return app.exec_()
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user