Fix #940 GUI Background in Display Tab is Missing

This commit is contained in:
JannisX11 2021-06-28 23:01:08 +02:00
parent a272561c6e
commit 2243ed2d8b

View File

@ -1752,13 +1752,14 @@ window.addEventListener("gamepadconnected", function(event) {
class PreviewBackground {
constructor(data = {}) {
this.name = data.name ? tl(data.name) : ''
this._image = data._image||false
this._image = data.image||false
this.size = data.size||1000
this.x = data.x||0
this.y = data.y||0
this.lock = data.lock||false
this.save_in_project = false;
this.defaults = Object.assign({}, this);
this.defaults.image = this.image;
this.imgtag = new Image();
}
get image() {