1
0
mirror of https://github.com/ciromattia/kcc synced 2026-02-19 02:29:04 +00:00

add kindlegen error to GUI (#1237)

This commit is contained in:
Alex Xu
2026-02-03 08:10:29 -08:00
committed by GitHub
parent 87c6e3a35e
commit 3660f2370f

View File

@@ -523,6 +523,7 @@ class WorkerThread(QThread):
if os.path.exists(item.replace('.epub', '.mobi')):
os.remove(item.replace('.epub', '.mobi'))
MW.addMessage.emit('KindleGen failed to create MOBI!', 'error', False)
MW.addMessage.emit(self.kindlegenErrorCode[1], 'error', False)
MW.addTrayMessage.emit('KindleGen failed to create MOBI!', 'Critical')
if self.kindlegenErrorCode[0] == 1 and self.kindlegenErrorCode[1] != '':
MW.showDialog.emit("KindleGen error:\n\n" + self.kindlegenErrorCode[1], 'error')