From 1c231ce0142a5a8adf786f146da21b2161e37878 Mon Sep 17 00:00:00 2001 From: Tom Piccirello <8296030+Piccirello@users.noreply.github.com> Date: Sat, 20 Dec 2025 01:21:26 -0800 Subject: [PATCH] WebUI: keep preferences window open after unsuccessful save This gives the user another opportunity to save their changes. PR #23549. --- src/webui/www/private/views/preferences.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index f5cbfe3a8..b3ef22499 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -3219,8 +3219,8 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD window.parent.location.reload(); window.parent.qBittorrent.Client.closeWindow(document.getElementById("preferencesPage")); }).catch((error) => { + // keep window open so user can reattempt saving alert("QBT_TR(Unable to save program preferences, qBittorrent is probably unreachable.)QBT_TR[CONTEXT=HttpServer]"); - window.parent.qBittorrent.Client.closeWindow(document.getElementById("preferencesPage")); }); };