1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-28 18:50:40 +03:00

restore indicator iconOffset when changing styles

This commit is contained in:
Michail Vourlakos 2021-10-23 13:01:08 +03:00
parent e822062668
commit 1aeae6d256

View File

@ -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;
}
}
}