diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-07-27 22:35:38 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-07-27 22:35:38 +0200 |
commit | d955444dc18b2977d8b22e87b92c85bca90a623e (patch) | |
tree | 22086804e4d01f85583fc46f72350317ee626849 /resources/qml/QuickSwitcher.qml | |
parent | Fix crash on invalid utf8 in decrypted events (diff) | |
download | nheko-d955444dc18b2977d8b22e87b92c85bca90a623e.tar.xz |
Port to explicit connect syntax
Also fix a lot of warnings.
Diffstat (limited to 'resources/qml/QuickSwitcher.qml')
-rw-r--r-- | resources/qml/QuickSwitcher.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/qml/QuickSwitcher.qml b/resources/qml/QuickSwitcher.qml index 8c4f47ca..61155acf 100644 --- a/resources/qml/QuickSwitcher.qml +++ b/resources/qml/QuickSwitcher.qml @@ -71,15 +71,17 @@ Popup { } Connections { - onCompletionSelected: { + function onCompletionSelected(id) { Rooms.setCurrentRoom(id); quickSwitcher.close(); } - onCountChanged: { + + function onCountChanged() { if (completerPopup.count > 0 && (completerPopup.currentIndex < 0 || completerPopup.currentIndex >= completerPopup.count)) completerPopup.currentIndex = 0; } + target: completerPopup } |