Cache program preferences

So that qbt can just use the data from memory which is vastly faster than waiting for a response
over the net.
This commit is contained in:
Chocobo1 2024-02-10 01:25:53 +08:00
parent 6d68ab4dae
commit d06d5b923a
10 changed files with 402 additions and 340 deletions

View file

@ -1576,6 +1576,8 @@ window.addEvent('load', function() {
}
}).activate();
window.parent.qBittorrent.Cache.preferences.init();
// fetch qbt version and store it locally
new Request({
url: 'api/v2/app/version',