This commit is contained in:
Kovid Goyal 2024-10-27 08:30:10 +05:30
commit d826a5de73
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 2 deletions

View File

@ -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]

View File

@ -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.&lt;/p&gt;</string> cannot be hierarchical.&lt;/p&gt;
&lt;p&gt;User categories are always hierarchical and so do not appear in this list.&lt;/p&gt;</string>
</property> </property>
<property name="text"> <property name="text">
<string>Select categories with &amp;hierarchical items:</string> <string>Select categories with &amp;hierarchical items:</string>