Skip to content

Commit fe24486

Browse files
committed
Always display bookshelves custom column setting
1 parent b91a302 commit fe24486

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class BookFusionPlugin(InterfaceActionBase):
99
description = 'Provides synchronization of your eBooks and metadata from Calibre to your devices via the BookFusion iOS, Android & Web reader.'
1010
supported_platforms = ['windows', 'osx', 'linux']
1111
author = 'BookFusion'
12-
version = (0, 6, 0)
12+
version = (0, 6, 1)
1313
minimum_calibre_version = (3, 16, 0)
1414

1515
actual_plugin = 'calibre_plugins.bookfusion.ui:InterfacePlugin'

config.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,11 @@ def __init__(self):
7171

7272
self.bookshelves_custom_column = QComboBox(self)
7373
self.bookshelves_custom_column.addItem('')
74-
option_count = 0
7574
for key, meta in get_current_db().new_api.field_metadata.custom_iteritems():
7675
if meta['datatype'] == 'text':
7776
self.bookshelves_custom_column.addItem(key)
78-
option_count += 1
7977
self.bookshelves_custom_column.setCurrentText(prefs['bookshelves_custom_column'])
80-
if option_count > 0:
81-
self.form.addRow('Bookshelves Column:', self.bookshelves_custom_column)
78+
self.form.addRow('Bookshelves Column:', self.bookshelves_custom_column)
8279

8380
def save_settings(self):
8481
prefs['api_key'] = unicode(self.api_key.text())

0 commit comments

Comments
 (0)