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 () => { 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 => {
});
closableWindows.forEach(w => {
App.closeWindow(w[0]); App.closeWindow(w[0]);
}); });
}; };