mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
5fd300a533
commit
b712a24e3b
@ -291,9 +291,7 @@ class Boss(QObject):
|
|||||||
editor = editors.get(name, None)
|
editor = editors.get(name, None)
|
||||||
if editor is None:
|
if editor is None:
|
||||||
editor = editors[name] = editor_from_syntax(syntax, self.gui.editor_tabs)
|
editor = editors[name] = editor_from_syntax(syntax, self.gui.editor_tabs)
|
||||||
c = current_container()
|
data = current_container().raw_data(name)
|
||||||
with c.open(name) as f:
|
|
||||||
data = c.decode(f.read())
|
|
||||||
self.init_editor(name, editor, data)
|
self.init_editor(name, editor, data)
|
||||||
self.show_editor(name)
|
self.show_editor(name)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user