mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 04:43:41 +02:00
Add API to get the name of the file bing currently edited
This commit is contained in:
parent
db3b08247e
commit
1ec7397544
1 changed files with 5 additions and 0 deletions
|
|
@ -131,6 +131,11 @@ def __call__(self, gui):
|
|||
self.gui.manage_fonts.embed_all_fonts.connect(self.manage_fonts_embed)
|
||||
self.gui.manage_fonts.subset_all_fonts.connect(self.manage_fonts_subset)
|
||||
|
||||
@property
|
||||
def currently_editing(self):
|
||||
' Return the name of the file being edited currently or None if no file is being edited '
|
||||
return editor_name(self.gui.current_editor)
|
||||
|
||||
def preferences(self):
|
||||
orig_spell = tprefs['inline_spell_check']
|
||||
p = Preferences(self.gui)
|
||||
|
|
|
|||
Loading…
Reference in a new issue