mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
WebUI: fix preferences not applied in magnet handler
Thanks for the diagnosis in this [post](https://github.com/qbittorrent/qBittorrent/issues/22495#issue-2958553624). Closes #21486. Closes #22495. PR #22504.
This commit is contained in:
parent
f540381caf
commit
cdddaae939
1 changed files with 5 additions and 1 deletions
|
@ -131,7 +131,11 @@ window.qBittorrent.Download ??= (() => {
|
|||
}
|
||||
};
|
||||
|
||||
$(window).addEventListener("load", () => {
|
||||
$(window).addEventListener("load", async () => {
|
||||
// user might load this page directly (via browser magnet handler)
|
||||
// so wait for crucial initialization to complete
|
||||
await window.parent.qBittorrent.Client.initializeCaches();
|
||||
|
||||
getPreferences();
|
||||
getCategories();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue