Hide loading overlay on book load failure

This commit is contained in:
Kovid Goyal 2019-10-09 16:36:58 +05:30
parent 7b1e665186
commit 871b0386de
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -329,6 +329,7 @@ class EbookViewer(MainWindow):
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'])