fix(ags closer): close all popup windows

This commit is contained in:
matt1432 2023-10-28 21:43:40 -04:00
parent dc73f5f384
commit 7f06a60027

View file

@ -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 => {
App.closeWindow(w[0]);
});
Array.from(App.windows)
.filter(w => w[1].closeOnUnfocus)
.forEach(w => {
App.closeWindow(w[0]);
});
};