Skip to content

Commit

Permalink
Hide loading overlay on book load failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Oct 9, 2019
1 parent 7b1e665 commit 871b038
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/calibre/gui2/viewer/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def load_finished(self, ok, data):
error_dialog(self, _('Loading book failed'), _(
'Failed to open the book at {0}. Click "Show details" for more info.').format(data['pathtoebook']),
det_msg=data['tb'], show=True)
self.loading_overlay.hide()
self.web_view.show_home_page()
return
set_book_path(data['base'], data['pathtoebook'])
Expand Down

0 comments on commit 871b038

Please sign in to comment.