mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 07:57:19 +00:00
add delayed initialization
This workaround probably will fix issue with the recent plasma when plasmashell fails to load sometimes.
This commit is contained in:
parent
fe7f82373b
commit
bd65e44002
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user