mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5da4c44b18
commit
df695546c1
@ -322,9 +322,6 @@ class CoverFlowMixin:
|
||||
|
||||
disable_cover_browser_refresh = False
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
pass
|
||||
|
||||
def one_auto_scroll(self):
|
||||
cb_visible = self.cover_flow is not None and self.cb_splitter.button.isChecked()
|
||||
if cb_visible:
|
||||
@ -347,10 +344,11 @@ class CoverFlowMixin:
|
||||
self.auto_scroll_timer.stop()
|
||||
self.toggle_auto_scroll()
|
||||
|
||||
def init_cover_flow_mixin(self):
|
||||
def __init__(self, *a, **kw):
|
||||
self.cf_last_updated_at = None
|
||||
self.cover_flow_syncing_enabled = False
|
||||
self.cover_flow_sync_flag = True
|
||||
self.separate_cover_browser = config['separate_cover_flow']
|
||||
self.cover_flow = CoverFlow(parent=self)
|
||||
self.cover_flow.currentChanged.connect(self.sync_listview_to_cf)
|
||||
self.cover_flow.context_menu_requested.connect(self.cf_context_menu_requested)
|
||||
@ -359,7 +357,7 @@ class CoverFlowMixin:
|
||||
self.cover_flow.setImages(self.db_images)
|
||||
self.cover_flow.itemActivated.connect(self.iactions['View'].view_specific_book)
|
||||
self.update_cover_flow_subtitle_font()
|
||||
if config['separate_cover_flow']:
|
||||
if self.separate_cover_browser:
|
||||
self.separate_cover_browser = True
|
||||
self.cb_splitter.button.clicked.connect(self.toggle_cover_browser)
|
||||
self.cb_splitter.button.set_state_to_show()
|
||||
|
@ -373,7 +373,7 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
||||
|
||||
# ########################## Cover Flow ################################
|
||||
|
||||
self.init_cover_flow_mixin()
|
||||
CoverFlowMixin.__init__(self)
|
||||
|
||||
self._calculated_available_height = min(max_available_height()-15,
|
||||
self.height())
|
||||
|
Loading…
x
Reference in New Issue
Block a user