mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 16:26:20 +01:00
...
This commit is contained in:
parent
653a48527f
commit
20e3d4fe98
1 changed files with 2 additions and 2 deletions
|
|
@ -137,9 +137,9 @@ def create_toolbars(self):
|
|||
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…
Reference in a new issue