mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a862a3d72f
commit
f31bfb749c
@ -137,10 +137,11 @@ class Editor(QMainWindow):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
self.tools_bar = b = self.addToolBar(_('Editor tools'))
|
self.tools_bar = b = self.addToolBar(_('Editor tools'))
|
||||||
if actions and self.syntax == 'html':
|
if actions:
|
||||||
b.addAction(actions['fix-html-current'])
|
if self.syntax == 'html':
|
||||||
if actions and self.syntax in {'xml', 'html', 'css'}:
|
b.addAction(actions['fix-html-current'])
|
||||||
b.addAction(actions['pretty-current'])
|
if self.syntax in {'xml', 'html', 'css'}:
|
||||||
|
b.addAction(actions['pretty-current'])
|
||||||
|
|
||||||
def break_cycles(self):
|
def break_cycles(self):
|
||||||
self.modification_state_changed.disconnect()
|
self.modification_state_changed.disconnect()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user