From d7b920f97c7d255528bc13426b24e4cc6bdb8500 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 1 Mar 2022 20:53:11 +0300 Subject: [PATCH] [DE] Don't show disconnect message on window close/reload --- apps/documenteditor/main/app/controller/Main.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index ea7b89e84..a932e2ce4 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -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); },