mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
WebUI: display alert when unable to load preferences
This commit is contained in:
parent
41dae509b4
commit
f7ab3ba3ba
1 changed files with 3 additions and 0 deletions
|
@ -2650,6 +2650,9 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD
|
||||||
document.getElementById("i2pOutboundQuantity").value = pref.i2p_outbound_quantity;
|
document.getElementById("i2pOutboundQuantity").value = pref.i2p_outbound_quantity;
|
||||||
document.getElementById("i2pInboundLength").value = pref.i2p_inbound_length;
|
document.getElementById("i2pInboundLength").value = pref.i2p_inbound_length;
|
||||||
document.getElementById("i2pOutboundLength").value = pref.i2p_outbound_length;
|
document.getElementById("i2pOutboundLength").value = pref.i2p_outbound_length;
|
||||||
|
}).catch((error) => {
|
||||||
|
console.error(error);
|
||||||
|
alert("QBT_TR(Unable to load program preferences, qBittorrent is probably unreachable.)QBT_TR[CONTEXT=HttpServer]");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue