From c3c3e2a78cdb2bc3280ff1dbc04d7bfdc5b7fed0 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 10 Oct 2024 00:05:28 +0300 Subject: [PATCH] [PDF] Fix collaboration notification on start --- apps/pdfeditor/main/app/controller/Main.js | 2 +- apps/pdfeditor/main/app/view/Toolbar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/pdfeditor/main/app/controller/Main.js b/apps/pdfeditor/main/app/controller/Main.js index 322d1cb39a..7f0b70aa7d 100644 --- a/apps/pdfeditor/main/app/controller/Main.js +++ b/apps/pdfeditor/main/app/controller/Main.js @@ -2208,7 +2208,7 @@ define([ // }, onCollaborativeChanges: function() { - if (this._state.hasCollaborativeChanges) return; + if (this._state.hasCollaborativeChanges || Common.Utils.InternalSettings.get("pdfe-settings-coauthmode")) return; this._state.hasCollaborativeChanges = true; if (this.appOptions.isEdit) this.getApplication().getController('Statusbar').setStatusCaption(this.txtNeedSynchronize, true); diff --git a/apps/pdfeditor/main/app/view/Toolbar.js b/apps/pdfeditor/main/app/view/Toolbar.js index edc3b6b65e..5d84d92871 100644 --- a/apps/pdfeditor/main/app/view/Toolbar.js +++ b/apps/pdfeditor/main/app/view/Toolbar.js @@ -1686,7 +1686,7 @@ define([ /** coauthoring begin **/ onCollaborativeChanges: function () { - if (!(this.mode.isPDFAnnotate || this.mode.isPDFEdit)) return; + if (!(this.mode.isPDFAnnotate || this.mode.isPDFEdit) || Common.Utils.InternalSettings.get("pdfe-settings-coauthmode")) return; if (this._state.hasCollaborativeChanges) return; if (!this.btnCollabChanges.rendered || this._state.previewmode) {