Performance: do not try to render controls box when empty

This commit is contained in:
Rafostar
2020-11-13 20:12:26 +01:00
parent f660d900ba
commit 373714f161

View File

@@ -198,6 +198,8 @@ var Widget = GObject.registerClass({
this.revealerBottom.remove(this.controls); this.revealerBottom.remove(this.controls);
this.controlsBox.append(this.controls); this.controlsBox.append(this.controls);
} }
this.controlsBox.set_visible(!isOnTop);
} }
_onMediaInfoUpdated(player, mediaInfo) _onMediaInfoUpdated(player, mediaInfo)