* File Sharing: fix broken file sharing dialog

This commit is contained in:
Hadi Nategh 2020-08-13 14:35:09 +02:00
parent a7916d9738
commit 31241227e1
2 changed files with 3 additions and 2 deletions

View File

@ -1540,7 +1540,8 @@ var et2_nextmatch = /** @class */ (function (_super) {
et2_nextmatch.prototype.set_disable_autorefresh = function (disabled) { et2_nextmatch.prototype.set_disable_autorefresh = function (disabled) {
this.options.disable_autorefresh = disabled; this.options.disable_autorefresh = disabled;
//@todo remove it after finding a right fix //@todo remove it after finding a right fix
this.controller.set_disable_autorefresh(disabled); if (this.controller)
this.controller.set_disable_autorefresh(disabled);
this._set_autorefresh(this._get_autorefresh()); this._set_autorefresh(this._get_autorefresh());
}; };
/** /**

View File

@ -2106,7 +2106,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
{ {
this.options.disable_autorefresh = disabled; this.options.disable_autorefresh = disabled;
//@todo remove it after finding a right fix //@todo remove it after finding a right fix
this.controller.set_disable_autorefresh(disabled); if (this.controller) this.controller.set_disable_autorefresh(disabled);
this._set_autorefresh(this._get_autorefresh()); this._set_autorefresh(this._get_autorefresh());
} }