[DE] Don't show disconnect message on window close/reload
This commit is contained in:
parent
a38dd40749
commit
d7b920f97c
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue