mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 10:35:20 -04:00
Preserve scrollbar value
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user