From a54cfb46a74dfa1ad637e537eb74e2071e9c1595 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 28 Aug 2024 20:02:31 -0500 Subject: [PATCH] fix: avoid exit prompt for configure when removing settings --- src/wuttaweb/templates/configure.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wuttaweb/templates/configure.mako b/src/wuttaweb/templates/configure.mako index 20878a3..63ba963 100644 --- a/src/wuttaweb/templates/configure.mako +++ b/src/wuttaweb/templates/configure.mako @@ -190,7 +190,7 @@ // cf. https://stackoverflow.com/a/56551646 ThisPage.methods.beforeWindowUnload = function(e) { - if (this.settingsNeedSaved && !this.savingSettings && !this.undoChanges) { + if (this.settingsNeedSaved && !this.savingSettings && !this.undoChanges && !this.purgingSettings) { e.preventDefault() e.returnValue = '' }