Added a couple of flags to allow the build tool to be run without user interaction
This commit is contained in:
@@ -552,6 +552,7 @@ class GuiBuildNovel(QDialog):
|
|||||||
if not path.isdir(saveDir):
|
if not path.isdir(saveDir):
|
||||||
saveDir = self.mainConf.homePath
|
saveDir = self.mainConf.homePath
|
||||||
|
|
||||||
|
if self.mainConf.showGUI:
|
||||||
dlgOpt = QFileDialog.Options()
|
dlgOpt = QFileDialog.Options()
|
||||||
dlgOpt |= QFileDialog.DontUseNativeDialog
|
dlgOpt |= QFileDialog.DontUseNativeDialog
|
||||||
saveTo = QFileDialog.getSaveFileName(
|
saveTo = QFileDialog.getSaveFileName(
|
||||||
@@ -635,6 +636,7 @@ class GuiBuildNovel(QDialog):
|
|||||||
errMsg = "Unknown format"
|
errMsg = "Unknown format"
|
||||||
|
|
||||||
# Report to user
|
# Report to user
|
||||||
|
if self.mainConf.showGUI:
|
||||||
if wSuccess:
|
if wSuccess:
|
||||||
self.theParent.makeAlert(
|
self.theParent.makeAlert(
|
||||||
"%s file successfully written to:<br> %s" % (
|
"%s file successfully written to:<br> %s" % (
|
||||||
|
|||||||
Reference in New Issue
Block a user