mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 01:57:07 -07:00
WebUI: Always close one window
Closing all windows is overly broad and never the intention. PR #21804.
This commit is contained in:
parent
0f12d077c8
commit
1cd3c586c1
24 changed files with 70 additions and 70 deletions
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue