Bladeren bron

Implicitly defined onFoo properties in Connections are deprecated

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Felix Weilbach 4 jaren geleden
bovenliggende
commit
8a2097e7b9
2 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 2 2
      src/gui/tray/ActivityItem.qml
  2. 3 3
      src/gui/tray/Window.qml

+ 2 - 2
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();
                     }
                 }

+ 3 - 3
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();
         }