Only show loading finished time on initial load

This commit is contained in:
Kovid Goyal 2021-03-16 11:56:58 +05:30
parent 60229b0a9c
commit 7c97efd19c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -411,7 +411,9 @@ class EbookViewer(MainWindow):
if msg: if msg:
self.loading_overlay(msg) self.loading_overlay(msg)
else: else:
if not hasattr(self, 'initial_loading_performace_reported'):
performance_monitor('loading finished') performance_monitor('loading finished')
self.initial_loading_performace_reported = True
self.loading_overlay.hide() self.loading_overlay.hide()
def show_error(self, title, msg, details): def show_error(self, title, msg, details):