fix(ags applauncher): add App to corresponding functions

This commit is contained in:
matt1432 2023-10-15 22:03:20 -04:00
parent c47a13e155
commit bd6eccdc82
2 changed files with 2 additions and 4 deletions

View file

@ -1,6 +1,5 @@
import { App, Applications, Utils, Widget } from '../../imports.js'; import { App, Applications, Utils, Widget } from '../../imports.js';
const { Label, Box, Icon, Button, Scrollable, Entry, EventBox } = Widget; const { Label, Box, Icon, Button, Scrollable, Entry, EventBox } = Widget;
const { getWindow } = App
import { Separator } from '../misc/separator.js'; import { Separator } from '../misc/separator.js';
import { PopupWindow } from '../misc/popup.js'; import { PopupWindow } from '../misc/popup.js';
@ -120,10 +119,10 @@ export default PopupWindow({
name: 'applauncher', name: 'applauncher',
child: EventBox({ child: EventBox({
onHover: () => { onHover: () => {
getWindow('applauncher').focusable = true; App.getWindow('applauncher').focusable = true;
}, },
onHoverLost: () => { onHoverLost: () => {
getWindow('applauncher').focusable = false; App.getWindow('applauncher').focusable = false;
}, },
child: Applauncher(), child: Applauncher(),
}), }),

View file

@ -24,7 +24,6 @@ const Center = player => Box({
CenterBox({ CenterBox({
vertical: true, vertical: true,
children: [ children: [
Box({ Box({
className: 'metadata', className: 'metadata',
vertical: true, vertical: true,