epopov added a comment.
In **Plasma/5.18** branch there was a `Containment.onAppletAdded` handler that took the `applet` as a parameter, but can't find this handler in **master** branch. Unfortunately, I don’t have enough knowledge of Plasma API to know if I can add this handler manually. REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D28408 To: epopov, ngraham, #plasma Cc: davidedmundson, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart