mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
WebUI: keep preferences window open after unsuccessful save
This gives the user another opportunity to save their changes. PR #23549.
This commit is contained in:
@@ -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"));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user