summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-05-05 11:02:45 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-05-05 11:02:45 +0800
commit3b618df65499f2353c6dd5b131f5bed77cc7bf5a (patch)
tree5d3467d4d0e38b7555becd1caf5905b4a1b7b3a2
parenta6620439f518a7deaf2bf059d47f25283fd6b65d (diff)
Sync canvas on load
-rw-r--r--contents/ui/main.qml8
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 {