Do not overwrite circle on event (e.g. charging) if there is a circle configured for that place

master
Marco Heiming 2022-01-12 16:57:42 +01:00
parent 1f744e8949
commit 1d8febed9f
1 changed files with 4 additions and 2 deletions

View File

@ -136,8 +136,10 @@ function getCirclePosition(type) {
if (setting == type) return circlePosX[i - 1];
}
for (let i = 0; i < defaultCircleTypes.length; i++) {
if (type == defaultCircleTypes[i]) return circlePosX[i];
}
if (type == defaultCircleTypes[i] && (!settings || settings['circle' + (i + 1)] == undefined)) {
return circlePosX[i];
}
}
return undefined;
}