mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Metadata plugboards: Allow use of device_db special format with individual device drivers
This commit is contained in:
parent
633fd94c25
commit
bf098af98b
@ -241,7 +241,8 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
if self.current_format != plugboard_any_format_value and \
|
if self.current_format != plugboard_any_format_value and \
|
||||||
self.current_device in self.device_to_formats_map:
|
self.current_device in self.device_to_formats_map:
|
||||||
allowable_formats = self.device_to_formats_map[self.current_device]
|
allowable_formats = self.device_to_formats_map[self.current_device]
|
||||||
if self.current_format not in allowable_formats:
|
if (self.current_format not in allowable_formats and
|
||||||
|
self.current_format != 'device_db'):
|
||||||
error_dialog(self, '',
|
error_dialog(self, '',
|
||||||
_('The {0} device does not support the {1} format.').
|
_('The {0} device does not support the {1} format.').
|
||||||
format(self.current_device, self.current_format),
|
format(self.current_device, self.current_format),
|
||||||
@ -358,5 +359,5 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
from PyQt4.Qt import QApplication
|
from PyQt4.Qt import QApplication
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
test_widget('Import/Export', 'plugboards')
|
test_widget('Import/Export', 'Plugboard')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user