mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
653a48527f
commit
20e3d4fe98
@ -137,9 +137,9 @@ class Editor(QMainWindow):
|
||||
except KeyError:
|
||||
pass
|
||||
self.tools_bar = b = self.addToolBar(_('Editor tools'))
|
||||
if self.syntax == 'html':
|
||||
if actions and self.syntax == 'html':
|
||||
b.addAction(actions['fix-html-current'])
|
||||
if self.syntax in {'xml', 'html', 'css'}:
|
||||
if actions and self.syntax in {'xml', 'html', 'css'}:
|
||||
b.addAction(actions['pretty-current'])
|
||||
|
||||
def break_cycles(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user