fix(ags notif): make first notif appear
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2023-12-28 23:20:03 -05:00
parent d59a949e2a
commit a609bdc61b
3 changed files with 9 additions and 11 deletions

View file

@ -1,15 +1,14 @@
import PopUpsWidget from 'file:///home/matt/.nix/devices/wim/config/ags/js/notifications/popup.js';
import { Window } from 'resource:///com/github/Aylur/ags/widget.js';
import NotifCenterWidget from 'file:///home/matt/.nix/devices/wim/config/ags/js/notifications/center.js';
import PopUpsWidget from 'file:///home/matt/.nix/devices/wim/config/ags/js/notifications/popup.js';
import PopupWindow from 'file:///home/matt/.nix/devices/wim/config/ags/js/misc/popup.js';
export const NotifPopups = () => PopupWindow({
export const NotifPopups = () => Window({
name: 'notifications',
anchor: ['bottom', 'left'],
visible: true,
transition: 'none',
close_on_unfocus: 'stay',
monitor: 1,
child: PopUpsWidget(),

View file

@ -1,15 +1,12 @@
import PopUpsWidget from './popup.js';
import { Window } from 'resource:///com/github/Aylur/ags/widget.js';
import NotifCenterWidget from './center.js';
import PopUpsWidget from './popup.js';
import PopupWindow from '../misc/popup.js';
export const NotifPopups = () => PopupWindow({
export const NotifPopups = () => Window({
name: 'notifications',
anchor: ['top', 'left'],
visible: true,
transition: 'none',
close_on_unfocus: 'stay',
child: PopUpsWidget(),
});

View file

@ -12,6 +12,8 @@ const DELAY = 2000;
export default () => Box({
vertical: true,
// Needed so it occupies space at the start
css: 'padding: 1px;',
setup: (self) => {
/** @param {number} id */