1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-09 17:18:11 +03:00

blacklist from applet from heuristics

--blacklist "com.github.zren.presentwindows" from
Latte heuristics in order to work correctly with
it.
This commit is contained in:
Michail Vourlakos 2018-04-05 14:57:23 +03:00
parent 27715435a9
commit cd8676e62a

View File

@ -1,4 +1,6 @@
var blacklistedApplets = ["com.github.zren.presentwindows"];
function typeOf(obj, className){
var name = obj.toString();
//if (applet.pluginName === "org.kde.plasma.kicker") //"set a plugin name to debug"
@ -32,6 +34,10 @@ function reconsiderAppletIconItem(){
}
function identifyGeneric() {
if (blacklistedApplets.indexOf(applet.pluginName) >= 0) {
return;
}
var level0 = applet.children;
for(var i=0; i<level0.length; ++i){