diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-05-05 11:02:45 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-05-05 11:02:45 +0800 |
commit | 3b618df65499f2353c6dd5b131f5bed77cc7bf5a (patch) | |
tree | 5d3467d4d0e38b7555becd1caf5905b4a1b7b3a2 | |
parent | a6620439f518a7deaf2bf059d47f25283fd6b65d (diff) |
Sync canvas on load
-rw-r--r-- | contents/ui/main.qml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 9e330cc..1fc6779 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -101,11 +101,13 @@ Item { } } + Component.onCompleted: syncCanvas() + Timer { interval: plasmoid.configuration.refreshInterval * 60 * 1000 - running: true; - repeat: true; - onTriggered: syncCanvas(); + running: true + repeat: true + onTriggered: syncCanvas() } ColumnLayout { |