mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
This commit is contained in:
parent
1c24785e68
commit
b45bcc9ea3
@ -745,7 +745,7 @@ class Main(MainWindow, Ui_MainWindow):
|
|||||||
#############################View book######################################
|
#############################View book######################################
|
||||||
|
|
||||||
def view_format(self, row, format):
|
def view_format(self, row, format):
|
||||||
pt = PersistentTemporaryFile('_viewer')
|
pt = PersistentTemporaryFile('_viewer.'+format.lower())
|
||||||
pt.write(self.library_view.model().db.format(row, format))
|
pt.write(self.library_view.model().db.format(row, format))
|
||||||
pt.close()
|
pt.close()
|
||||||
self.persistent_files.append(pt)
|
self.persistent_files.append(pt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user