Special case display of path field name in book details preferences to match dual use as "folders/path"

This commit is contained in:
Kovid Goyal 2023-04-25 22:30:38 +05:30
parent eede10c998
commit d1d4f06ca2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -255,6 +255,8 @@ class DisplayedFields(QAbstractListModel): # {{{
name = self.db.field_metadata[field]['name']
except:
pass
if field == 'path':
name = _('Folders/path')
if not name:
return field
return f'{name} ({field})'