diff --git a/plasmoid/package/contents/ui/main.qml b/plasmoid/package/contents/ui/main.qml index d21ff26..2e2c030 100644 --- a/plasmoid/package/contents/ui/main.qml +++ b/plasmoid/package/contents/ui/main.qml @@ -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"