mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Do not show the on device column in the split view
This commit is contained in:
parent
8d35902d61
commit
ca986e5976
@ -553,8 +553,10 @@ class BooksView(QTableView): # {{{
|
||||
|
||||
# Ondevice column {{{
|
||||
def set_ondevice_column_visibility(self):
|
||||
col, h = self._model.column_map.index('ondevice'), self.column_header
|
||||
h.setSectionHidden(col, not self._model.device_connected)
|
||||
col = self._model.column_map.index('ondevice')
|
||||
self.column_header.setSectionHidden(col, not self._model.device_connected)
|
||||
if self.is_library_view:
|
||||
self.pin_view.column_header.setSectionHidden(col, True)
|
||||
|
||||
def set_device_connected(self, is_connected):
|
||||
self._model.set_device_connected(is_connected)
|
||||
|
Loading…
x
Reference in New Issue
Block a user