From 8a2097e7b9689048085f89375f20b5f549f10991 Mon Sep 17 00:00:00 2001 From: Felix Weilbach Date: Fri, 20 Aug 2021 18:27:25 +0200 Subject: [PATCH] Implicitly defined onFoo properties in Connections are deprecated Signed-off-by: Felix Weilbach --- src/gui/tray/ActivityItem.qml | 4 ++-- src/gui/tray/Window.qml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/tray/ActivityItem.qml b/src/gui/tray/ActivityItem.qml index 27bc435e7..bf480a098 100644 --- a/src/gui/tray/ActivityItem.qml +++ b/src/gui/tray/ActivityItem.qml @@ -168,7 +168,7 @@ MouseArea { Connections { target: trayWindow - onActiveChanged: { + function onActiveChanged() { if (!trayWindow.active) { moreActionsButtonContextMenu.close(); } @@ -178,7 +178,7 @@ MouseArea { Connections { target: activityListView - onMovementStarted: { + function onMovementStarted() { moreActionsButtonContextMenu.close(); } } diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index 39c08ffab..1e0d8436b 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -47,14 +47,14 @@ Window { Connections { target: UserModel - onNewUserSelected: { + function onNewUserSelected() { accountMenu.close(); } } Connections { target: Systray - onShowWindow: { + function onShowWindow() { accountMenu.close(); appsMenu.close(); Systray.positionWindow(trayWindow); @@ -66,7 +66,7 @@ Window { Systray.setOpened(); UserModel.fetchCurrentActivityModel(); } - onHideWindow: { + function onHideWindow() { trayWindow.hide(); Systray.setClosed(); } -- 2.30.2