summary refs log tree commit diff
path: root/resources/qml/PrivacyScreen.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-27 22:35:38 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-27 22:35:38 +0200
commitd955444dc18b2977d8b22e87b92c85bca90a623e (patch)
tree22086804e4d01f85583fc46f72350317ee626849 /resources/qml/PrivacyScreen.qml
parentFix crash on invalid utf8 in decrypted events (diff)
downloadnheko-d955444dc18b2977d8b22e87b92c85bca90a623e.tar.xz
Port to explicit connect syntax
Also fix a lot of warnings.
Diffstat (limited to 'resources/qml/PrivacyScreen.qml')
-rw-r--r--resources/qml/PrivacyScreen.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/qml/PrivacyScreen.qml b/resources/qml/PrivacyScreen.qml
index ca73cfd7..5f18a1ce 100644
--- a/resources/qml/PrivacyScreen.qml
+++ b/resources/qml/PrivacyScreen.qml
@@ -13,8 +13,7 @@ Item {
     property int screenTimeout
 
     Connections {
-        target: TimelineManager
-        onFocusChanged: {
+        function onFocusChanged() {
             if (TimelineManager.isWindowFocused) {
                 screenSaverTimer.stop();
                 screenSaver.state = "Invisible";
@@ -24,6 +23,8 @@ Item {
 
             }
         }
+
+        target: TimelineManager
     }
 
     Timer {