mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06: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:
committed by
Vladimir Golovnev (Glassez)
parent
d492fcf29a
commit
57d529c17a
@@ -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();
|
getPreferences();
|
||||||
getCategories();
|
getCategories();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user