fix(ags): don't close widgets on pressing the bar
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-06-24 16:52:09 -04:00
parent 27f1d01f31
commit a504df00e9

View file

@ -156,10 +156,7 @@ class Pointers extends Service {
if (overlayLayer) { if (overlayLayer) {
const noCloseWidgetsNames = [ const noCloseWidgetsNames = [
'bar-0', 'bar-',
'bar-1',
'bar-2',
'bar-3',
'osk', 'osk',
]; ];
@ -169,7 +166,7 @@ class Pointers extends Service {
names.forEach((name) => { names.forEach((name) => {
arr.push( arr.push(
overlayLayer.find( overlayLayer.find(
(n) => n.namespace === name, (n) => n.namespace.startsWith(name),
) || ) ||
// Return an empty Layer if widget doesn't exist // Return an empty Layer if widget doesn't exist
{ {