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/PrivacyScreen.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/PrivacyScreen.qml')
-rw-r--r-- | resources/qml/PrivacyScreen.qml | 5 |
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 { |