mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-22 06:50:47 -04:00
Remove bool tristate tweak, now that it is in preferences -> behavior.
This commit is contained in:
parent
2524105c84
commit
d68d25c106
@ -88,13 +88,6 @@ categories_collapsed_rating_template = r'{first.avg_rating:4.2f:ifempty(0)} - {l
|
|||||||
categories_collapsed_popularity_template = r'{first.count:d} - {last.count:d}'
|
categories_collapsed_popularity_template = r'{first.count:d} - {last.count:d}'
|
||||||
|
|
||||||
|
|
||||||
#: Set boolean custom columns to be tristate
|
|
||||||
# Set whether boolean custom columns are two- or three-valued.
|
|
||||||
# Two-values for true booleans
|
|
||||||
# three-values for yes/no/unknown
|
|
||||||
# Set to 'yes' for three-values, 'no' for two-values
|
|
||||||
bool_custom_columns_are_tristate = 'yes'
|
|
||||||
|
|
||||||
#: Specify columns to sort the booklist by on startup
|
#: Specify columns to sort the booklist by on startup
|
||||||
# Provide a set of columns to be sorted on when calibre starts
|
# Provide a set of columns to be sorted on when calibre starts
|
||||||
# The argument is None if saved sort history is to be used
|
# The argument is None if saved sort history is to be used
|
||||||
|
@ -213,6 +213,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
defs['gui_restriction'] = defs['cs_restriction'] = ''
|
defs['gui_restriction'] = defs['cs_restriction'] = ''
|
||||||
defs['categories_using_hierarchy'] = []
|
defs['categories_using_hierarchy'] = []
|
||||||
|
|
||||||
|
# Migrate the bool tristate tweak
|
||||||
defs['bools_are_tristate'] = \
|
defs['bools_are_tristate'] = \
|
||||||
tweaks.get('bool_custom_columns_are_tristate', 'yes') == 'yes'
|
tweaks.get('bool_custom_columns_are_tristate', 'yes') == 'yes'
|
||||||
if self.prefs.get('bools_are_tristate') is None:
|
if self.prefs.get('bools_are_tristate') is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user