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 () => {
|
||||
const closableWindows = Array.from(App.windows).filter(w => {
|
||||
return w[1].closeOnUnfocus &&
|
||||
w[1].closeOnUnfocus !== 'none';
|
||||
});
|
||||
closableWindows.forEach(w => {
|
||||
Array.from(App.windows)
|
||||
.filter(w => w[1].closeOnUnfocus)
|
||||
.forEach(w => {
|
||||
App.closeWindow(w[0]);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue