From 6e4ec9e92da019fd0d047474c2910a4f9094201f Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 13 Sep 2017 13:36:19 +0300 Subject: [PATCH] Run first plugin from autostart plugins list. --- apps/documenteditor/main/app/controller/Main.js | 1 + apps/presentationeditor/main/app/controller/Main.js | 1 + apps/spreadsheeteditor/main/app/controller/Main.js | 1 + 3 files changed, 3 insertions(+) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 11acaec8f..e6c6f8323 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1970,6 +1970,7 @@ define([ this.api.asc_pluginRun(plugins.autoStartGuid, 0, ''); } else if (plugins.autostart && plugins.autostart.length>0) { // run array of plugins + this.api.asc_pluginRun(plugins.autostart[0], 0, ''); } } if (!uiCustomize) this.getApplication().getController('LeftMenu').enablePlugins(); diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 2e76bb140..503ff5d70 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -1745,6 +1745,7 @@ define([ this.api.asc_pluginRun(plugins.autoStartGuid, 0, ''); } else if (plugins.autostart && plugins.autostart.length>0) { // run array of plugins + this.api.asc_pluginRun(plugins.autostart[0], 0, ''); } } if (!uiCustomize) this.getApplication().getController('LeftMenu').enablePlugins(); diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index dd53f708e..05e20a272 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -1924,6 +1924,7 @@ define([ this.api.asc_pluginRun(plugins.autoStartGuid, 0, ''); } else if (plugins.autostart && plugins.autostart.length>0) { // run array of plugins + this.api.asc_pluginRun(plugins.autostart[0], 0, ''); } } if (!uiCustomize) this.getApplication().getController('LeftMenu').enablePlugins();