mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Fix loading progress screen sometimes getting stuck if changing pages rapidly with mouse wheel. Fixes #1846751 [New Viewer App gets stuck at "Loading next section from … please wait…" when scrolling](https://bugs.launchpad.net/calibre/+bug/1846751)
This commit is contained in:
parent
7ca2f68e53
commit
f0b3091a18
@ -482,6 +482,8 @@ class View:
|
||||
|
||||
def show_loading(self):
|
||||
msg = _('Loading next section from <i>{title}</i>, please wait…').format(title=self.book.metadata.title)
|
||||
if self.show_loading_callback_timer is not None:
|
||||
clearTimeout(self.show_loading_callback_timer)
|
||||
self.show_loading_callback_timer = setTimeout(self.show_loading_message.bind(None, msg), 200)
|
||||
|
||||
def hide_loading(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user