mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 13:41:59 -07:00
prevent double-registering of avars
This commit is contained in:
@@ -54,10 +54,13 @@ CAnimatedVariable::~CAnimatedVariable() {
|
||||
|
||||
void CAnimatedVariable::unregister() {
|
||||
g_pAnimationManager->m_lAnimatedVariables.remove(this);
|
||||
m_bIsRegistered = false;
|
||||
}
|
||||
|
||||
void CAnimatedVariable::registerVar() {
|
||||
g_pAnimationManager->m_lAnimatedVariables.push_back(this);
|
||||
if (!m_bIsRegistered)
|
||||
g_pAnimationManager->m_lAnimatedVariables.push_back(this);
|
||||
m_bIsRegistered = true;
|
||||
}
|
||||
|
||||
int CAnimatedVariable::getDurationLeftMs() {
|
||||
|
Reference in New Issue
Block a user