diff options
author | Felix Weilbach <felix.weilbach@nextcloud.com> | 2021-08-20 19:27:25 +0300 |
---|---|---|
committer | Felix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de> | 2021-09-03 14:48:42 +0300 |
commit | 8a2097e7b9689048085f89375f20b5f549f10991 (patch) | |
tree | 10f077b5c3dbccaeb7014c4ccfed1aabf2aea5f7 | |
parent | c07aec320a15523838c7fa002ad857f67f20fc63 (diff) |
Implicitly defined onFoo properties in Connections are deprecated
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
-rw-r--r-- | src/gui/tray/ActivityItem.qml | 4 | ||||
-rw-r--r-- | 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();
}
|