[DE] Don't show disconnect message on window close/reload

This commit is contained in:
Julia Radzhabova 2022-03-01 20:53:11 +03:00
parent a38dd40749
commit d7b920f97c

View file

@ -1051,10 +1051,12 @@ define([
case Asc.c_oAscAsyncAction['Disconnect']:
text = this.textDisconnect;
this.disableEditing(true, true);
var me = this;
statusCallback = function() {
me.getApplication().getController('Statusbar').showDisconnectTip();
};
if (!this._state.unload) { // don't show disconnect message on window close/reload
var me = this;
statusCallback = function() {
me.getApplication().getController('Statusbar').showDisconnectTip();
};
}
break;
default:
@ -2065,6 +2067,7 @@ define([
},
onUnload: function() {
this._state.unload = true;
if (this.continueSavingTimer) clearTimeout(this.continueSavingTimer);
},