mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:23:25 +02:00
...
This commit is contained in:
parent
c73e1ff90f
commit
42cb126b01
1 changed files with 3 additions and 0 deletions
|
|
@ -308,6 +308,9 @@ def lookup(self, word):
|
|||
open_url(url)
|
||||
|
||||
def print_book(self):
|
||||
if self.iterator is None:
|
||||
return error_dialog(self, _('No book opened'), _(
|
||||
'Cannot print as no book is opened'), show=True)
|
||||
from calibre.gui2.viewer.printing import print_book
|
||||
print_book(self.iterator.pathtoebook, self, self.current_title)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue