mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c73e1ff90f
commit
42cb126b01
@ -308,6 +308,9 @@ class EbookViewer(MainWindow):
|
|||||||
open_url(url)
|
open_url(url)
|
||||||
|
|
||||||
def print_book(self):
|
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
|
from calibre.gui2.viewer.printing import print_book
|
||||||
print_book(self.iterator.pathtoebook, self, self.current_title)
|
print_book(self.iterator.pathtoebook, self, self.current_title)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user