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
This commit is contained in:
parent
61852df9a1
commit
2d18b06b3f
@ -127,7 +127,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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user