identify kdeconnect sms applet

v0.7
Michail Vourlakos 7 years ago
parent b108409a4f
commit d858ca5317

@ -22,6 +22,8 @@ function reconsiderAppletIconItem(){
identifySimpleMenu();
} else if (applet.pluginName === "org.kde.plasma.userswitcher"&& !root.behaveAsPlasmaPanel && !container.lockZoom) {
identifyUserSwitcher();
} else if (applet.pluginName === "org.kde.comexpertise.plasma.kdeconnect.sms") {
identifyKdeConnectSms();
} else if (applet.pluginName === "org.kde.redshiftControl") {
//blacklist
} else {
@ -51,6 +53,28 @@ function identifyGeneric() {
}
}
function identifyKdeConnectSms()
{
if (applet.pluginName !== "org.kde.comexpertise.plasma.kdeconnect.sms")
return;
var level0 = applet.children;
for(var i=0; i<level0.length; ++i){
var level1 = level0[i].children;
for(var j=0; j<level1.length; ++j){
var level2 = level1[j].children;
for(var k=0; k<level2.length; ++k){
if (typeOf(level2[k], "IconItem")) {
container.appletIconItem = level2[k];
return;
}
}
}
}
}
function identifyKickOff() {
if (applet.pluginName !== "org.kde.plasma.kickoff")
return;
@ -140,7 +164,7 @@ function identifyKicker() {
}
if (imageIt){
container.appletImageItem = imageIt;
container.appletImageItem = imageIt;
}
return;

Loading…
Cancel
Save