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:
parent
55506fd20a
commit
84003f3c35
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user