[FIX] hibou_professional: re-attempt render

This commit is contained in:
Jared Kipe
2023-03-08 22:27:20 +00:00
parent a3bf382bf6
commit 6d4a12e848

View File

@@ -250,7 +250,15 @@ var HibouProfessionalSystrayWidget = Widget.extend({
this.is_admin = status.is_admin;
this.allow_admin_message = status.allow_admin_message;
this.allow_message = status.allow_message;
this.renderElement();
this.tryRenderElement();
},
tryRenderElement: function() {
if (this._has_rendered) {
setTimeout(this.renderElement.bind(this), 10);
} else {
setTimeout(this.tryRenderElement.bind(this), 100);
}
},
});