fix(ags closer): close all popup windows
This commit is contained in:
parent
dc73f5f384
commit
7f06a60027
1 changed files with 5 additions and 7 deletions
|
@ -5,11 +5,9 @@ import Pointers from '../../services/pointers.js';
|
||||||
|
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
const closableWindows = Array.from(App.windows).filter(w => {
|
Array.from(App.windows)
|
||||||
return w[1].closeOnUnfocus &&
|
.filter(w => w[1].closeOnUnfocus)
|
||||||
w[1].closeOnUnfocus !== 'none';
|
.forEach(w => {
|
||||||
});
|
App.closeWindow(w[0]);
|
||||||
closableWindows.forEach(w => {
|
});
|
||||||
App.closeWindow(w[0]);
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue