mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Preserve scrollbar value
This commit is contained in:
parent
654e69829b
commit
6470aed8c3
@ -318,8 +318,14 @@ class BrowsePanel(QWidget):
|
||||
self.do_find()
|
||||
|
||||
def refresh(self):
|
||||
vbar = self.results_list.verticalScrollBar()
|
||||
if vbar:
|
||||
vpos = vbar.value()
|
||||
self.current_query = None
|
||||
self.do_find()
|
||||
vbar = self.results_list.verticalScrollBar()
|
||||
if vbar:
|
||||
vbar.setValue(vpos)
|
||||
|
||||
def show_next(self):
|
||||
self.do_find()
|
||||
|
Loading…
x
Reference in New Issue
Block a user