padOsd: Drop needless call

If we got this far, we are dealing with an already known label.
There's no need for this check.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1290
This commit is contained in:
Carlos Garnacho 2020-05-29 15:59:32 +02:00 committed by Florian Müllner
parent 989118981b
commit ece1329145

View File

@ -639,9 +639,6 @@ var PadDiagram = GObject.registerClass({
if (this._curEdited == null) if (this._curEdited == null)
return; return;
let [found] = this._getLabelCoords(action, idx, dir);
if (!found)
return;
this._editorActor.show(); this._editorActor.show();
editedLabel.hide(); editedLabel.hide();
} }