Do not overwrite circle on event (e.g. charging) if there is a circle configured for that place
parent
1f744e8949
commit
1d8febed9f
|
|
@ -136,8 +136,10 @@ function getCirclePosition(type) {
|
||||||
if (setting == type) return circlePosX[i - 1];
|
if (setting == type) return circlePosX[i - 1];
|
||||||
}
|
}
|
||||||
for (let i = 0; i < defaultCircleTypes.length; i++) {
|
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;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue