Do not show the on device column in the split view

This commit is contained in:
Kovid Goyal 2018-01-31 14:52:49 +05:30
parent 8d35902d61
commit ca986e5976
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)