mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
committed by
GitHub
parent
0cbe4882c3
commit
c5fa05299b
@@ -1187,7 +1187,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
hideRssTab();
|
hideRssTab();
|
||||||
hideLogTab();
|
hideLogTab();
|
||||||
|
|
||||||
LocalPreferences.set("selected_tab", "transfers");
|
LocalPreferences.set("selected_window_tab", "transfers");
|
||||||
};
|
};
|
||||||
|
|
||||||
const hideTransfersTab = function() {
|
const hideTransfersTab = function() {
|
||||||
@@ -1223,7 +1223,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
hideRssTab();
|
hideRssTab();
|
||||||
hideLogTab();
|
hideLogTab();
|
||||||
|
|
||||||
LocalPreferences.set("selected_tab", "search");
|
LocalPreferences.set("selected_window_tab", "search");
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
@@ -1250,7 +1250,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
hideSearchTab();
|
hideSearchTab();
|
||||||
hideLogTab();
|
hideLogTab();
|
||||||
|
|
||||||
LocalPreferences.set("selected_tab", "rss");
|
LocalPreferences.set("selected_window_tab", "rss");
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
@@ -1288,7 +1288,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||||||
hideSearchTab();
|
hideSearchTab();
|
||||||
hideRssTab();
|
hideRssTab();
|
||||||
|
|
||||||
LocalPreferences.set("selected_tab", "log");
|
LocalPreferences.set("selected_window_tab", "log");
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
||||||
@@ -1665,7 +1665,7 @@ window.addEventListener("load", () => {
|
|||||||
window.qBittorrent.Cache.qbtVersion.init();
|
window.qBittorrent.Cache.qbtVersion.init();
|
||||||
|
|
||||||
// switch to previously used tab
|
// switch to previously used tab
|
||||||
const previouslyUsedTab = LocalPreferences.get("selected_tab", "transfers");
|
const previouslyUsedTab = LocalPreferences.get("selected_window_tab", "transfers");
|
||||||
switch (previouslyUsedTab) {
|
switch (previouslyUsedTab) {
|
||||||
case "search":
|
case "search":
|
||||||
if (window.qBittorrent.Client.isShowSearchEngine())
|
if (window.qBittorrent.Client.isShowSearchEngine())
|
||||||
@@ -1683,7 +1683,7 @@ window.addEventListener("load", () => {
|
|||||||
$("transfersTabLink").click();
|
$("transfersTabLink").click();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.error(`Unexpected 'selected_tab' value: ${previouslyUsedTab}`);
|
console.error(`Unexpected 'selected_window_tab' value: ${previouslyUsedTab}`);
|
||||||
$("transfersTabLink").click();
|
$("transfersTabLink").click();
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user