Fix widgets couldn't change statustext once set

This commit is contained in:
nathan 2022-05-09 10:02:07 -06:00
parent daa324e948
commit 66ee3687b6

View File

@ -287,7 +287,6 @@ const Et2WidgetMixin = (superClass) =>
{ {
let oldValue = this.__statustext; let oldValue = this.__statustext;
this.__statustext = value; this.__statustext = value;
this.egw().tooltipBind(this, this.__statustext);
this.requestUpdate("statustext", oldValue); this.requestUpdate("statustext", oldValue);
} }
@ -377,6 +376,14 @@ const Et2WidgetMixin = (superClass) =>
{ {
this._set_label(this.label); this._set_label(this.label);
} }
if(changedProperties.has("statustext"))
{
this.egw().tooltipUnbind(this);
if(this.statustext)
{
this.egw().tooltipBind(this, this.statustext);
}
}
} }
/** /**