mediaMessage: Don't try to raise player while locked

We don't allow windows on the lock screen, so don't raise a
player window while locked, as the result of the action would
only become visible on unlock.
This commit is contained in:
Florian Müllner 2018-02-15 14:14:07 +01:00
parent decec89163
commit 8de5416913
No known key found for this signature in database

View file

@ -49,6 +49,9 @@ class MediaMessage extends MessageList.Message {
}
vfunc_clicked() {
if (Main.sessionMode.isLocked)
return;
this._player.raise();
Main.panel.closeCalendar();
}