Skip to content

Commit

Permalink
🐛 修复 #268
Browse files Browse the repository at this point in the history
  • Loading branch information
muwoo committed Oct 19, 2023
1 parent 142387d commit 7fb299d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/result.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:key="index"
>
<a-avatar style="width: 28px; height: 28px;" :src="item.icon" />
<div class="name ellpise">{{item.pluginName || item._name || item.name}}</div>
<div class="name ellpise">{{item.cmd || item.pluginName || item._name || item.name}}</div>
</a-col>
</a-row>
</div>
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/plugins-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ const createPluginManager = (): any => {
const openPlugin = async (plugin, option) => {
if (plugin.pluginType === 'ui' || plugin.pluginType === 'system') {
if (state.currentPlugin && state.currentPlugin.name === plugin.name) {
ipcRenderer.sendSync('msg-trigger', {
type: 'showMainWindow',
});
return;
}
await loadPlugin(plugin);
Expand Down

0 comments on commit 7fb299d

Please sign in to comment.