mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove user categories from the dialog Preferences / Look & feel / Tag browser / Hierarchical categories. They are always hierarchical. Having them listed in this dialog serves no purpose.
This commit is contained in:
parent
38b2f2da5c
commit
9b3360e5f1
@ -486,7 +486,8 @@ class TBHierarchicalFields(DisplayedFields): # {{{
|
|||||||
|
|
||||||
def initialize(self, use_defaults=False, pref_data_override=None):
|
def initialize(self, use_defaults=False, pref_data_override=None):
|
||||||
tv = self.gui.tags_view
|
tv = self.gui.tags_view
|
||||||
cats = [k for k in tv.model().categories.keys() if k not in self.cant_make_hierarical]
|
cats = [k for k in tv.model().categories.keys() if (not k.startswith('@') and
|
||||||
|
k not in self.cant_make_hierarical)]
|
||||||
ans = []
|
ans = []
|
||||||
if use_defaults:
|
if use_defaults:
|
||||||
ans = [[k, False] for k in cats]
|
ans = [[k, False] for k in cats]
|
||||||
|
@ -1685,7 +1685,8 @@ and 'Mystery.Thriller' will be displayed with English and Thriller
|
|||||||
both under 'Mystery'. If 'tags' is not checked
|
both under 'Mystery'. If 'tags' is not checked
|
||||||
then the tags will be displayed each on their own line.</p>
|
then the tags will be displayed each on their own line.</p>
|
||||||
<p>The categories 'authors', 'publisher', 'news', 'formats', and 'rating'
|
<p>The categories 'authors', 'publisher', 'news', 'formats', and 'rating'
|
||||||
cannot be hierarchical.</p></string>
|
cannot be hierarchical.</p>
|
||||||
|
<p>User categories are always hierarchical so don't appear here.</p></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Select categories with &hierarchical items:</string>
|
<string>Select categories with &hierarchical items:</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user