Implicitly defined onFoo properties in Connections are deprecated
authorFelix Weilbach <felix.weilbach@nextcloud.com>
Fri, 20 Aug 2021 16:27:25 +0000 (18:27 +0200)
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>
Fri, 3 Sep 2021 11:48:42 +0000 (11:48 +0000)
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
src/gui/tray/ActivityItem.qml
src/gui/tray/Window.qml

index 27bc435e7430ef24e9d99929f8f82295ea0b1ed9..bf480a098445b3bf6a1247bf0318aa9d6f337e81 100644 (file)
@@ -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();
                     }
                 }
index 39c08ffab256050d93b414664abdf3f47ccb578a..1e0d8436bf1ecb1daef0a946f891ae37f9f5fdfc 100644 (file)
@@ -47,14 +47,14 @@ Window {
 \r
     Connections {\r
         target: UserModel\r
-        onNewUserSelected: {\r
+        function onNewUserSelected() {\r
             accountMenu.close();\r
         }\r
     }\r
 \r
     Connections {\r
         target: Systray\r
-        onShowWindow: {\r
+        function onShowWindow() {\r
             accountMenu.close();\r
             appsMenu.close();\r
             Systray.positionWindow(trayWindow);\r
@@ -66,7 +66,7 @@ Window {
             Systray.setOpened();\r
             UserModel.fetchCurrentActivityModel();\r
         }\r
-        onHideWindow: {\r
+        function onHideWindow() {\r
             trayWindow.hide();\r
             Systray.setClosed();\r
         }\r