timeLimitsManager: Remove a redundant fallback value

This code was originally copied from `lightbox.js`, where the fallback
is potentially useful because the duration is provided as an argument.
The `timeLimitsManager` uses a constant as the duration, though, so the
fallback is just confusing.

Spotted in https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3655#note_2369352

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3655>
This commit is contained in:
Philip Withnall 2025-03-05 11:32:48 +00:00 committed by Marge Bot
parent 5d1157cdfa
commit 7183e75f05

View File

@ -957,7 +957,7 @@ class TimeLimitsDispatcher extends GObject.Object {
Main.layoutManager.uiGroup.ease_property(
'@effects.desaturate.factor', GRAYSCALE_SATURATION,
{
duration: GRAYSCALE_FADE_TIME_SECONDS * 1000 || 0,
duration: GRAYSCALE_FADE_TIME_SECONDS * 1000,
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
} else {