1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-13 05:17:48 +03:00

protect latteBridge setting

This commit is contained in:
Michail Vourlakos 2020-05-14 23:36:15 +03:00
parent 55506fd20a
commit 84003f3c35

View File

@ -143,10 +143,15 @@ Item{
//! Initialize
Component.onCompleted: {
appletRootItem.latteBridge = settings;
if (appletContainsLatteBridge) {
appletRootItem.latteBridge = settings;
}
}
Component.onDestruction: {
appletRootItem.latteBridge = null;
if (appletContainsLatteBridge) {
console.log("org.kde.latte " + appletItem.applet.pluginName);
appletRootItem.latteBridge = null;
}
}
}