mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-11 01:44:58 -06:00
WebUI: use local preference class locally
This commit is contained in:
@@ -182,10 +182,12 @@
|
||||
}
|
||||
};
|
||||
|
||||
const localPreferences = new window.qBittorrent.LocalPreferences.LocalPreferences();
|
||||
|
||||
let logFilterTimer = -1;
|
||||
let inputtedFilterText = "";
|
||||
let selectBox;
|
||||
let selectedLogLevels = JSON.parse(LocalPreferences.get("qbt_selected_log_levels")) || ["1", "2", "4", "8"];
|
||||
let selectedLogLevels = JSON.parse(localPreferences.get("qbt_selected_log_levels")) || ["1", "2", "4", "8"];
|
||||
|
||||
const init = () => {
|
||||
for (const option of document.getElementById("logLevelSelect").options)
|
||||
@@ -275,7 +277,7 @@
|
||||
if (selectedLogLevels !== value) {
|
||||
tableInfo[currentSelectedTab].last_id = -1;
|
||||
selectedLogLevels = value;
|
||||
LocalPreferences.set("qbt_selected_log_levels", JSON.stringify(selectedLogLevels));
|
||||
localPreferences.set("qbt_selected_log_levels", JSON.stringify(selectedLogLevels));
|
||||
logFilterChanged();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user