don't loop border anim on disabled

This commit is contained in:
vaxerski 2023-02-14 17:10:17 +00:00
parent 127e80692f
commit 61c817319f

View file

@ -313,7 +313,7 @@ void CWindow::onBorderAngleAnimEnd(void* ptr) {
const std::string STYLE = PANIMVAR->getConfig()->pValues->internalStyle;
if (STYLE != "loop")
if (STYLE != "loop" || !PANIMVAR->getConfig()->pValues->internalEnabled)
return;
PANIMVAR->setCallbackOnEnd(nullptr); // we remove the callback here because otherwise setvalueandwarp will recurse this