mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 04:33:42 +02:00
Make custom columns using bool icons put text values under the icons.
This commit is contained in:
parent
9f220fb79b
commit
1005fce494
1 changed files with 3 additions and 4 deletions
|
|
@ -634,13 +634,12 @@ def bool_type(r, idx=-1):
|
|||
|
||||
def bool_type_decorator(r, idx=-1, bool_cols_are_tristate=True):
|
||||
val = force_to_bool(self.db.data[r][idx])
|
||||
if not bool_cols_are_tristate:
|
||||
if val is None or not val:
|
||||
if val is None:
|
||||
if not bool_cols_are_tristate:
|
||||
return self.bool_no_icon
|
||||
return None
|
||||
if val:
|
||||
return self.bool_yes_icon
|
||||
if val is None:
|
||||
return self.bool_blank_icon
|
||||
return self.bool_no_icon
|
||||
|
||||
def ondevice_decorator(r, idx=-1):
|
||||
|
|
|
|||
Loading…
Reference in a new issue