This commit is contained in:
Kovid Goyal 2025-05-11 19:50:50 +05:30
parent a1a611cd1a
commit e1bf592824
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 3 deletions

View File

@ -1121,7 +1121,7 @@ class TemplateConfig(QWidget): # {{{
tmpl = self.template
try:
v = validation_formatter.validate(tmpl)
validation_formatter.validate(tmpl)
return True
except Exception as err:
error_dialog(self, _('Invalid template for {0}').format(self.name),

View File

@ -64,14 +64,14 @@ class TabbedDeviceConfig(QTabWidget):
from DeviceOptionsGroupBox, are created to further group the options. The group
boxes can be coded to support any control type and dependencies between them.
Set validate_before_accept to True if you want validation() to be called
Set validate_before_accept to True if you want validate() to be called
when OK is pressed
'''
def __init__(self, device_settings, all_formats, supports_subdirs,
must_read_metadata, supports_use_author_sort,
extra_customization_message, device,
extra_customization_choices=None, parent=None, validate_before_accept = False):
extra_customization_choices=None, parent=None, validate_before_accept=False):
QTabWidget.__init__(self, parent)
self._device = weakref.ref(device)