mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Enhancement #7920 (Tab for custom MetaData) -- added a tweak to switch to single-column mode
This commit is contained in:
parent
201e4ed09b
commit
95fcf6d3af
@ -235,3 +235,9 @@ doubleclick_on_library_view = 'open_viewer'
|
|||||||
# Example: locale_for_sorting = 'fr' -- sort using French rules.
|
# Example: locale_for_sorting = 'fr' -- sort using French rules.
|
||||||
# Example: locale_for_sorting = 'nb' -- sort using Norwegian rules.
|
# Example: locale_for_sorting = 'nb' -- sort using Norwegian rules.
|
||||||
locale_for_sorting = ''
|
locale_for_sorting = ''
|
||||||
|
|
||||||
|
|
||||||
|
# Set whether to use one or two columns for custom metadata when editing
|
||||||
|
# metadata one book at a time. If True, then the fields are laid out using two
|
||||||
|
# columns. If False, one column is used.
|
||||||
|
metadata_single_use_2_cols_for_custom_fields = True
|
@ -616,8 +616,8 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
|||||||
w = self.central_widget.widget(1)
|
w = self.central_widget.widget(1)
|
||||||
layout = w.layout()
|
layout = w.layout()
|
||||||
self.custom_column_widgets, self.__cc_spacers = \
|
self.custom_column_widgets, self.__cc_spacers = \
|
||||||
populate_metadata_page(layout, self.db, self.id,
|
populate_metadata_page(layout, self.db, self.id, parent=w, bulk=False,
|
||||||
parent=w, bulk=False, two_column=True)
|
two_column=tweaks['metadata_single_use_2_cols_for_custom_fields'])
|
||||||
self.__custom_col_layouts = [layout]
|
self.__custom_col_layouts = [layout]
|
||||||
ans = self.custom_column_widgets
|
ans = self.custom_column_widgets
|
||||||
for i in range(len(ans)-1):
|
for i in range(len(ans)-1):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user