From 7113821964b504bde9a0de01d724877fd9c41ea2 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 25 Apr 2014 15:14:22 +0200 Subject: [PATCH] osdWindow: Fix setting a zero-level in osdWindow Commit 7101cc3170bf727aebf918f37debff94ae705c85 caused a small regression insomuch that it checks for a valid "level" but simply using "if (level)" which will be false if level is undefined and if level == 0. Check for not undefined instead. https://bugzilla.gnome.org/show_bug.cgi?id=727384 --- js/ui/osdWindow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js index c9cb77d78..bb62e3301 100644 --- a/js/ui/osdWindow.js +++ b/js/ui/osdWindow.js @@ -125,7 +125,7 @@ const OsdWindow = new Lang.Class({ setLevel: function(level) { this._level.actor.visible = (level != undefined); - if (level) { + if (level != undefined) { if (this.actor.visible) Tweener.addTween(this._level, { level: level,