add delayed initialization

This workaround probably will fix issue with the recent plasma when
plasmashell fails to load sometimes.
This commit is contained in:
Evgenii Alekseev 2016-03-21 12:10:27 +03:00
parent fe7f82373b
commit bd65e44002

View File

@ -63,6 +63,7 @@ Item {
"notify": plasmoid.configuration.notify "notify": plasmoid.configuration.notify
} }
signal initWidget
signal needTextUpdate(string newText) signal needTextUpdate(string newText)
signal needToolTipUpdate(string newText) signal needToolTipUpdate(string newText)
signal sizeUpdate signal sizeUpdate
@ -131,10 +132,22 @@ Item {
} }
} }
Timer {
id: timer
interval: 3000
onTriggered: initWidget()
}
Component.onCompleted: { Component.onCompleted: {
if (debug) console.debug() if (debug) console.debug()
timer.start()
}
onInitWidget: {
if (debug) console.debug()
// actions // actions
// it makes no sense to use this field with optimization enable // it makes no sense to use this field with optimization enable
if (!plasmoid.configuration.optimize) if (!plasmoid.configuration.optimize)