Prevent warning in Plasmoid
This line might have done something at some point so let's not completely remove it for backwards compatibility.
This commit is contained in:
parent
6026339c83
commit
10fd09901b
|
@ -14,7 +14,11 @@ Item {
|
|||
}
|
||||
Plasmoid.fullRepresentation: Loader {
|
||||
source: "FullRepresentation.qml"
|
||||
onLoaded: item.updateSize()
|
||||
onLoaded: {
|
||||
if (typeof(item.updateSize) === 'function') {
|
||||
item.updateSize()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Plasmoid.icon: "syncthingtray"
|
||||
|
|
Loading…
Reference in New Issue