fix(ags): don't close notification popups with closeAll
This commit is contained in:
parent
03e60c7d54
commit
fadf527d97
6 changed files with 11 additions and 12 deletions
|
@ -3,11 +3,10 @@ import { Powermenu } from './js/powermenu.js';
|
||||||
import { Bar } from './js/bar/main.js';
|
import { Bar } from './js/bar/main.js';
|
||||||
import { NotificationCenter } from './js/notifications/center.js';
|
import { NotificationCenter } from './js/notifications/center.js';
|
||||||
import { NotificationsPopupList } from './js/notifications/popup.js'
|
import { NotificationsPopupList } from './js/notifications/popup.js'
|
||||||
import { Closer } from './js/misc/closer.js';
|
|
||||||
import { Calendar } from './js/date.js';
|
import { Calendar } from './js/date.js';
|
||||||
import { QuickSettings } from './js/quick-settings/main.js';
|
import { QuickSettings } from './js/quick-settings/main.js';
|
||||||
|
|
||||||
import { closeAll } from './js/misc/close-all.js';
|
import { Closer, closeAll } from './js/misc/closer.js';
|
||||||
ags.App.closeAll = () => closeAll();
|
ags.App.closeAll = () => closeAll();
|
||||||
|
|
||||||
const scss = ags.App.configDir + '/scss/main.scss';
|
const scss = ags.App.configDir + '/scss/main.scss';
|
||||||
|
|
|
@ -3,7 +3,7 @@ const { toggleWindow, openWindow } = ags.App;
|
||||||
const { DateTime } = imports.gi.GLib;
|
const { DateTime } = imports.gi.GLib;
|
||||||
|
|
||||||
import { EventBox } from '../misc/cursorbox.js';
|
import { EventBox } from '../misc/cursorbox.js';
|
||||||
import { closeAll } from '../misc/close-all.js';
|
import { closeAll } from '../misc/closer.js';
|
||||||
|
|
||||||
const ClockModule = ({
|
const ClockModule = ({
|
||||||
interval = 1000,
|
interval = 1000,
|
||||||
|
|
|
@ -4,7 +4,7 @@ const { Notifications } = ags.Service;
|
||||||
|
|
||||||
import { Separator } from '../misc/separator.js';
|
import { Separator } from '../misc/separator.js';
|
||||||
import { EventBox } from '../misc/cursorbox.js';
|
import { EventBox } from '../misc/cursorbox.js';
|
||||||
import { closeAll } from '../misc/close-all.js';
|
import { closeAll } from '../misc/closer.js';
|
||||||
|
|
||||||
export const NotifButton = EventBox({
|
export const NotifButton = EventBox({
|
||||||
className: 'toggle-off',
|
className: 'toggle-off',
|
||||||
|
|
|
@ -2,7 +2,7 @@ const { Box, Label } = ags.Widget;
|
||||||
const { toggleWindow, openWindow } = ags.App;
|
const { toggleWindow, openWindow } = ags.App;
|
||||||
|
|
||||||
import { EventBox } from '../misc/cursorbox.js';
|
import { EventBox } from '../misc/cursorbox.js';
|
||||||
import { closeAll } from '../misc/close-all.js';
|
import { closeAll } from '../misc/closer.js';
|
||||||
|
|
||||||
export const QsToggle = EventBox({
|
export const QsToggle = EventBox({
|
||||||
className: 'toggle-off',
|
className: 'toggle-off',
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
export const closeAll = () => {
|
|
||||||
ags.App.windows.forEach(w => {
|
|
||||||
if (w.name != 'bar')
|
|
||||||
ags.App.closeWindow(w.name)
|
|
||||||
});
|
|
||||||
};
|
|
|
@ -1,7 +1,13 @@
|
||||||
const { Window, EventBox } = ags.Widget;
|
const { Window, EventBox } = ags.Widget;
|
||||||
const { closeWindow } = ags.App;
|
const { closeWindow } = ags.App;
|
||||||
|
|
||||||
import { closeAll } from './close-all.js';
|
export const closeAll = () => {
|
||||||
|
ags.App.windows.forEach(w => {
|
||||||
|
if (w.name != 'bar' &&
|
||||||
|
w.name != 'notifications')
|
||||||
|
ags.App.closeWindow(w.name)
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
export const Closer = Window({
|
export const Closer = Window({
|
||||||
name: 'closer',
|
name: 'closer',
|
||||||
|
|
Loading…
Reference in a new issue