environment: Set time zero when animations are disabled
In commit ee09c5c853
we chose to pick
the minimum value in order to preserve 0 instead of replacing it with
1. While returning 0 unconditionally when animations are disabled
seems the more logic thing to do, we were unsure about possible side
effects. Do the change now. Since we are early in the development cycle
we should be able to deal with side effects (if any) on time for the
next release.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2528>
This commit is contained in:
parent
8b00255cc3
commit
7bd98f3f5f
@ -464,7 +464,7 @@ function adjustAnimationTime(msecs) {
|
|||||||
let settings = St.Settings.get();
|
let settings = St.Settings.get();
|
||||||
|
|
||||||
if (!settings.enable_animations)
|
if (!settings.enable_animations)
|
||||||
return Math.min(msecs, 1);
|
return 0;
|
||||||
return settings.slow_down_factor * msecs;
|
return settings.slow_down_factor * msecs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user