2023-10-24 17:26:38 -04:00
|
|
|
import { App } from '../../imports.js';
|
2023-10-16 17:06:19 -04:00
|
|
|
|
2023-10-24 17:26:38 -04:00
|
|
|
// TODO: find a way to not need this?
|
2023-10-16 17:06:19 -04:00
|
|
|
import Pointers from '../../services/pointers.js';
|
2023-09-12 14:42:53 -04:00
|
|
|
|
2023-09-25 12:43:36 -04:00
|
|
|
|
2023-10-24 17:26:38 -04:00
|
|
|
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]);
|
2023-10-20 23:11:21 -04:00
|
|
|
});
|
2023-09-13 19:04:23 -04:00
|
|
|
};
|