mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Preferences -> Add your own columns: description of title and ondevice must be special-cased because they are not shown in the tag browser.
This commit is contained in:
parent
b99d56acc7
commit
46e79d6394
@ -117,10 +117,15 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
fm = self.custcols[col]
|
||||
else:
|
||||
fm = field_metadata[col]
|
||||
dt = fm['datatype']
|
||||
if fm['is_multiple']:
|
||||
dt = '*' + dt
|
||||
item = QTableWidgetItem(self.column_desc[dt])
|
||||
|
||||
if col in ['title', 'ondevice']:
|
||||
coltype = _('Text')
|
||||
else:
|
||||
dt = fm['datatype']
|
||||
if fm['is_multiple']:
|
||||
dt = '*' + dt
|
||||
coltype = self.column_desc[dt]
|
||||
item = QTableWidgetItem(coltype)
|
||||
self.opt_columns.setItem(row, 2, item)
|
||||
|
||||
desc = fm['display'].get('description', "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user