Skip to content

Commit

Permalink
[common] Hide background plugins tip by click
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaSvinareva committed Jun 5, 2024
1 parent 269bbc6 commit 74382e2
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 @@ -470,6 +470,13 @@ define([
menu.off('show:before', onShowBefore);
};
me.viewPlugins.backgroundBtn.menu.on('show:before', onShowBefore);
me.viewPlugins.backgroundBtn.on('click', function () {
if (me.backgroundPluginsTip) {
me.backgroundPluginsTip.close();
me.backgroundPluginsTip = undefined;
me.newInstalledBackgroundPlugins && (me.newInstalledBackgroundPlugins.length = 0);
}
});
}

me.toolbar && me.toolbar.isTabActive('plugins') && me.toolbar.processPanelVisible(null, true);
Expand Down

0 comments on commit 74382e2

Please sign in to comment.