From bd65e44002d90a45d583b488fd48ba02becc7f6d Mon Sep 17 00:00:00 2001 From: arcan1s Date: Mon, 21 Mar 2016 12:10:27 +0300 Subject: [PATCH] add delayed initialization This workaround probably will fix issue with the recent plasma when plasmashell fails to load sometimes. --- sources/awesome-widget/package/contents/ui/main.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sources/awesome-widget/package/contents/ui/main.qml b/sources/awesome-widget/package/contents/ui/main.qml index 0e20bc9..ebdec9d 100644 --- a/sources/awesome-widget/package/contents/ui/main.qml +++ b/sources/awesome-widget/package/contents/ui/main.qml @@ -63,6 +63,7 @@ Item { "notify": plasmoid.configuration.notify } + signal initWidget signal needTextUpdate(string newText) signal needToolTipUpdate(string newText) signal sizeUpdate @@ -131,10 +132,22 @@ Item { } } + Timer { + id: timer + interval: 3000 + onTriggered: initWidget() + } + Component.onCompleted: { if (debug) console.debug() + timer.start() + } + + onInitWidget: { + if (debug) console.debug() + // actions // it makes no sense to use this field with optimization enable if (!plasmoid.configuration.optimize)