brouser -> browser

This commit is contained in:
Kovid Goyal 2023-12-18 19:59:18 +05:30
parent 988759188a
commit 044b1ae433
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
5 changed files with 14 additions and 14 deletions

View File

@ -423,8 +423,8 @@ def create_defs():
defs['tb_search_order'] = {'0': 1, '1': 2, '2': 3, '3': 4, '4': 0} defs['tb_search_order'] = {'0': 1, '1': 2, '2': 3, '3': 4, '4': 0}
defs['search_tool_bar_shows_text'] = True defs['search_tool_bar_shows_text'] = True
defs['allow_keyboard_search_in_library_views'] = True defs['allow_keyboard_search_in_library_views'] = True
defs['show_links_in_tag_brouser'] = False defs['show_links_in_tag_browser'] = False
defs['show_notes_in_tag_brouser'] = False defs['show_notes_in_tag_browser'] = False
def migrate_tweak(tweak_name, pref_name): def migrate_tweak(tweak_name, pref_name):
# If the tweak has been changed then leave the tweak in the file so # If the tweak has been changed then leave the tweak in the file so

View File

@ -646,8 +646,8 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
r('language', prefs, choices=choices, restart_required=True, setting=LanguageSetting) r('language', prefs, choices=choices, restart_required=True, setting=LanguageSetting)
r('show_avg_rating', config) r('show_avg_rating', config)
r('show_links_in_tag_brouser', gprefs) r('show_links_in_tag_browser', gprefs)
r('show_notes_in_tag_brouser', gprefs) r('show_notes_in_tag_browser', gprefs)
r('disable_animations', config) r('disable_animations', config)
r('systray_icon', config, restart_required=True) r('systray_icon', config, restart_required=True)
r('show_splash_screen', gprefs) r('show_splash_screen', gprefs)

View File

@ -1306,7 +1306,7 @@ structure and you want to use the same column order for each one.&lt;/p&gt;</str
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QCheckBox" name="opt_show_links_in_tag_brouser"> <widget class="QCheckBox" name="opt_show_links_in_tag_browser">
<property name="text"> <property name="text">
<string>Show &amp;links icons</string> <string>Show &amp;links icons</string>
</property> </property>
@ -1338,7 +1338,7 @@ see the counts by hovering your mouse over any item.&lt;/p&gt;</string>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
<widget class="QCheckBox" name="opt_show_notes_in_tag_brouser"> <widget class="QCheckBox" name="opt_show_notes_in_tag_browser">
<property name="text"> <property name="text">
<string>Show &amp;notes icons</string> <string>Show &amp;notes icons</string>
</property> </property>

View File

@ -873,11 +873,11 @@ class TagBrowserWidget(QFrame): # {{{
ac.setText(_('Hide average rating') if config['show_avg_rating'] else _('Show average rating')) ac.setText(_('Hide average rating') if config['show_avg_rating'] else _('Show average rating'))
ac.setIcon(QIcon.ic('minus.png' if config['show_avg_rating'] else 'plus.png')) ac.setIcon(QIcon.ic('minus.png' if config['show_avg_rating'] else 'plus.png'))
ac = self.alter_tb.m.show_notes_icon_action ac = self.alter_tb.m.show_notes_icon_action
ac.setText(_('Hide notes icon') if gprefs['show_notes_in_tag_brouser'] else _('Show notes icon')) ac.setText(_('Hide notes icon') if gprefs['show_notes_in_tag_browser'] else _('Show notes icon'))
ac.setIcon(QIcon.ic('minus.png' if gprefs['show_notes_in_tag_brouser'] else 'plus.png')) ac.setIcon(QIcon.ic('minus.png' if gprefs['show_notes_in_tag_browser'] else 'plus.png'))
ac = self.alter_tb.m.show_links_icon_action ac = self.alter_tb.m.show_links_icon_action
ac.setText(_('Hide links icon') if gprefs['show_links_in_tag_brouser'] else _('Show links icon')) ac.setText(_('Hide links icon') if gprefs['show_links_in_tag_browser'] else _('Show links icon'))
ac.setIcon(QIcon.ic('minus.png' if gprefs['show_links_in_tag_brouser'] else 'plus.png')) ac.setIcon(QIcon.ic('minus.png' if gprefs['show_links_in_tag_browser'] else 'plus.png'))
def filter_book_list(self): def filter_book_list(self):
self.tags_view.model().set_in_tag_browser() self.tags_view.model().set_in_tag_browser()
@ -892,11 +892,11 @@ class TagBrowserWidget(QFrame): # {{{
self.tags_view.recount_with_position_based_index() self.tags_view.recount_with_position_based_index()
def toggle_notes_icon(self): def toggle_notes_icon(self):
gprefs['show_notes_in_tag_brouser'] ^= True gprefs['show_notes_in_tag_browser'] ^= True
self.tags_view.recount_with_position_based_index() self.tags_view.recount_with_position_based_index()
def toggle_links_icon(self): def toggle_links_icon(self):
gprefs['show_links_in_tag_brouser'] ^= True gprefs['show_links_in_tag_browser'] ^= True
self.tags_view.recount_with_position_based_index() self.tags_view.recount_with_position_based_index()
def save_state(self): def save_state(self):

View File

@ -91,8 +91,8 @@ class TagDelegate(QStyledItemDelegate): # {{{
is_search = (True if item.type == TagTreeItem.TAG and is_search = (True if item.type == TagTreeItem.TAG and
item.tag.category == 'search' else False) item.tag.category == 'search' else False)
show_notes = gprefs['show_notes_in_tag_brouser'] show_notes = gprefs['show_notes_in_tag_browser']
show_links = gprefs['show_links_in_tag_brouser'] show_links = gprefs['show_links_in_tag_browser']
if item.type == TagTreeItem.TAG: if item.type == TagTreeItem.TAG:
category = item.tag.category category = item.tag.category
name = item.tag.original_name name = item.tag.original_name