diff --git a/src/calibre/gui2/tweak_book/preferences.py b/src/calibre/gui2/tweak_book/preferences.py index f5c3f9fdfd..a383ca62d8 100644 --- a/src/calibre/gui2/tweak_book/preferences.py +++ b/src/calibre/gui2/tweak_book/preferences.py @@ -178,6 +178,10 @@ class EditorSettings(BasicSettings): tw.setMinimum(2), tw.setSuffix(_(' characters')), tw.setMaximum(20) l.addRow(_('Width of &tabs:'), tw) + self.tb = b = QPushButton(_('Change &templates')) + l.addRow(_('Templates for new files:'), b) + b.clicked.connect(lambda : TemplatesDialog(self).exec_()) + lw = self('editor_line_wrap') lw.setText(_('&Wrap long lines in the editor')) l.addRow(lw) @@ -201,10 +205,6 @@ class EditorSettings(BasicSettings): ' time you open a HTML/CSS/etc. file for editing.')) l.addRow(lw) - self.tb = b = QPushButton(_('Change &templates')) - l.addRow(_('Change the templates for creating new files:'), b) - b.clicked.connect(lambda : TemplatesDialog(self).exec_()) - lw = self('inline_spell_check') lw.setText(_('Show misspelled words underlined in the code view')) lw.setToolTip('
' + _(