This commit is contained in:
Kovid Goyal 2022-02-02 21:58:23 +05:30
commit 668fd790d7
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
4 changed files with 17 additions and 2 deletions

View file

@ -564,6 +564,7 @@ def initialize_prefs(self, default_prefs, restore_all_prefs, progress_callback):
defs['cover_browser_title_template'] = '{title}'
defs['cover_browser_subtitle_field'] = 'rating'
defs['styled_columns'] = {}
defs['edit_metadata_ignore_display_order'] = False
# Migrate the bool tristate tweak
defs['bools_are_tristate'] = \

View file

@ -507,7 +507,7 @@ def setup_ui(self, parent):
w.set_space_before_sep(True)
w.set_add_separator(tweaks['authors_completer_append_separator'])
w.get_editor_button().clicked.connect(self.edit)
w.setSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Preferred)
w.setSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
self.set_to_undefined = w.clear
else:
w = EditWithComplete(parent)
@ -787,7 +787,7 @@ def widget_factory(typ, key):
fm = db.field_metadata
# Get list of all non-composite custom fields. We must make widgets for these
cols = [k[0] for k in get_field_list(db) if k[1]]
cols = [k[0] for k in get_field_list(db, use_defaults=db.prefs['edit_metadata_ignore_display_order']) if k[1]]
# This deals with the historical behavior where comments fields go to the
# bottom, starting on the left hand side. If a comment field is moved to
# somewhere else then it isn't moved to either side.

View file

@ -538,6 +538,7 @@ def get_esc_lang(l):
r('edit_metadata_single_layout', gprefs,
choices=[(_('Default'), 'default'), (_('Compact Metadata'), 'alt1'),
(_('All on 1 tab'), 'alt2')])
r('edit_metadata_ignore_display_order', db.prefs)
self.current_font = self.initial_font = None
self.change_font_button.clicked.connect(self.change_font)

View file

@ -994,6 +994,19 @@ A value of zero means calculate automatically.</string>
</layout>
</widget>
</item>
<item row="8" column="0">
<widget class="QCheckBox" name="opt_edit_metadata_ignore_display_order">
<property name="text">
<string>Show all columns in default order when editing metadata</string>
</property>
<property name="toolTip">
<string>&lt;p&gt;Check this box to make the edit metadata dialogs ignore the
above specifications, showing all the columns in the default order. This is
useful for temporarily seeing all your columns in the dialogs without losing
the display and order specifications.&lt;/p&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tag_browser_tab">