mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
WebUI: Always close one window
Closing all windows is overly broad and never the intention. PR #21804.
This commit is contained in:
committed by
GitHub
parent
0f12d077c8
commit
1cd3c586c1
@@ -30,7 +30,7 @@ window.qBittorrent.Client ??= (() => {
|
||||
const exports = () => {
|
||||
return {
|
||||
closeWindow: closeWindow,
|
||||
closeWindows: closeWindows,
|
||||
closeFrameWindow: closeFrameWindow,
|
||||
getSyncMainDataInterval: getSyncMainDataInterval,
|
||||
isStopped: isStopped,
|
||||
stop: stop,
|
||||
@@ -51,8 +51,8 @@ window.qBittorrent.Client ??= (() => {
|
||||
MochaUI.closeWindow(window);
|
||||
};
|
||||
|
||||
const closeWindows = () => {
|
||||
MochaUI.closeAll();
|
||||
const closeFrameWindow = (window) => {
|
||||
closeWindow(window.frameElement.closest("div.mocha").id);
|
||||
};
|
||||
|
||||
const getSyncMainDataInterval = () => {
|
||||
|
||||
Reference in New Issue
Block a user