Add a flag to disable asking before exit

This commit is contained in:
Veronica Berglyd Olsen
2025-01-29 18:17:32 +01:00
parent 448057edf6
commit 36d8ad4d8c
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -852,7 +852,7 @@ class GuiMain(QMainWindow):
def closeMain(self) -> bool:
"""Save everything, and close novelWriter."""
if SHARED.hasProject and not SHARED.question("%s<br>%s" % (
if SHARED.hasProject and CONFIG.askBeforeExit and not SHARED.question("%s<br>%s" % (
self.tr("Do you want to exit novelWriter?"),
self.tr("Changes are saved automatically.")
)):