restore indicator iconOffset when changing styles

work/m_layershell
Michail Vourlakos 3 years ago
parent e822062668
commit 1aeae6d256

@ -74,4 +74,13 @@ Item {
//! svg image paths either from plasma theme or local files relevant to indicator "ui" directory
//! in order to reduce resources usage
property var svgImagePaths: []
onLevelChanged: {
if (level) {
//! initialization on startup, this way when changing from indicator that changes them
//! at an indicator that is not using them at all, their values are restored
level.requested.iconOffsetX = 0;
level.requested.iconOffsetY = 0;
}
}
}

Loading…
Cancel
Save