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:
Martchus 2020-01-18 16:42:20 +01:00
parent 6026339c83
commit 10fd09901b
1 changed files with 5 additions and 1 deletions

View File

@ -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"