Skip to content

Commit

Permalink
[common] Fix bug 66927
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaSvinareva committed Mar 29, 2024
1 parent 2565307 commit bd31573
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/common/main/lib/controller/Plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ define([
Common.NotificationCenter.on('uitheme:changed', this.updatePluginsButtons.bind(this));
Common.NotificationCenter.on('window:resize', this.updatePluginsButtons.bind(this));
Common.NotificationCenter.on('app:ready', this.onAppReady.bind(this));
Common.NotificationCenter.on('doc:mode-changed', this.onChangeDocMode.bind(this));
},

loadConfig: function(data) {
Expand Down Expand Up @@ -1054,6 +1055,12 @@ define([
}
},

onChangeDocMode: function (type) {
if (type === 'view' && this.pluginDlg) {
this.api.asc_pluginButtonClick(-1, this.pluginDlg.guid);
}
},

// Plugin can create windows
onPluginWindowShow: function(frameId, variation) {
if (variation.isVisual) {
Expand Down

0 comments on commit bd31573

Please sign in to comment.