From c1d6b7b85c092e5f82f53642d114248d0aadccca Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 21 Nov 2019 10:09:16 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/view.pyj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index d0ed9dc085..c104e8bf00 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -640,7 +640,9 @@ class View: if not navigated and jstype(initial_bookpos) is 'number': navigated = True self.goto_book_position(initial_bookpos) - if not navigated: + if navigated: + self.hide_loading() + else: self.show_name(name, initial_position=pos) sd = get_session_data() c = sd.get('controls_help_shown_count', 0)