2023-09-12 09:37:48 -04:00
|
|
|
const { Window, EventBox } = ags.Widget;
|
2023-09-12 14:42:53 -04:00
|
|
|
const { closeWindow } = ags.App;
|
|
|
|
|
|
|
|
import { closeAll } from './close-all.js';
|
2023-09-12 09:37:48 -04:00
|
|
|
|
|
|
|
export const Closer = Window({
|
2023-09-11 19:57:21 -04:00
|
|
|
name: 'closer',
|
|
|
|
popup: true,
|
|
|
|
layer: 'top',
|
|
|
|
anchor: 'top bottom left right',
|
|
|
|
|
2023-09-12 09:37:48 -04:00
|
|
|
child: EventBox({
|
2023-09-12 14:42:53 -04:00
|
|
|
onPrimaryClickRelease: () => closeAll(),
|
2023-09-11 19:57:21 -04:00
|
|
|
}),
|
|
|
|
});
|