mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-05-12 21:30:37 +01:00
config: make sure disabled animation don't need a valid speed or bezier (#698)
This commit is contained in:
parent
e588351d1d
commit
712ab62a42
1 changed files with 5 additions and 0 deletions
|
@ -603,6 +603,11 @@ std::optional<std::string> CConfigManager::handleAnimation(const std::string& co
|
|||
if (enabledInt > 1 || enabledInt < 0)
|
||||
return "invalid animation on/off state";
|
||||
|
||||
if (!enabledInt) {
|
||||
m_AnimationTree.setConfigForNode(ANIMNAME, 0, 1, "default");
|
||||
return {};
|
||||
}
|
||||
|
||||
int64_t speed = -1;
|
||||
|
||||
// speed
|
||||
|
|
Loading…
Reference in a new issue