mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Fix hang when using --open-at with single instance viewer and the specified location is already open. Fixes #1656573 [[Enhancement] viewer command-line parameter to go to ePub TOC entry/bookmark](https://bugs.launchpad.net/calibre/+bug/1656573)
This commit is contained in:
parent
cd66cb007e
commit
c1d6b7b85c
@ -640,7 +640,9 @@ class View:
|
|||||||
if not navigated and jstype(initial_bookpos) is 'number':
|
if not navigated and jstype(initial_bookpos) is 'number':
|
||||||
navigated = True
|
navigated = True
|
||||||
self.goto_book_position(initial_bookpos)
|
self.goto_book_position(initial_bookpos)
|
||||||
if not navigated:
|
if navigated:
|
||||||
|
self.hide_loading()
|
||||||
|
else:
|
||||||
self.show_name(name, initial_position=pos)
|
self.show_name(name, initial_position=pos)
|
||||||
sd = get_session_data()
|
sd = get_session_data()
|
||||||
c = sd.get('controls_help_shown_count', 0)
|
c = sd.get('controls_help_shown_count', 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user