From 3b618df65499f2353c6dd5b131f5bed77cc7bf5a Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 5 May 2022 11:02:45 +0800 Subject: Sync canvas on load --- contents/ui/main.qml | 8 +++++--- 1 file 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 { -- cgit v1.2.3