From 986ad42ed7f4f38d859546186ce2b6faa6e0572e Mon Sep 17 00:00:00 2001 From: magicedy Date: Sun, 27 Apr 2025 12:07:41 +0800 Subject: [PATCH] fix: resolve key conflicts between local-start-app and plugin-history --- src/common/constans/renderer.ts | 2 +- src/renderer/plugins-manager/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/constans/renderer.ts b/src/common/constans/renderer.ts index 81e56ed..137a4f1 100644 --- a/src/common/constans/renderer.ts +++ b/src/common/constans/renderer.ts @@ -4,6 +4,6 @@ import path from 'path'; const appPath = app.getPath('userData'); const PLUGIN_INSTALL_DIR = path.join(appPath, './rubick-plugins-new'); -const PLUGIN_HISTORY = 'rubick-local-start-app'; +const PLUGIN_HISTORY = 'rubick-plugin-history'; export { PLUGIN_INSTALL_DIR, PLUGIN_HISTORY }; diff --git a/src/renderer/plugins-manager/index.ts b/src/renderer/plugins-manager/index.ts index 657a41e..2662e4f 100644 --- a/src/renderer/plugins-manager/index.ts +++ b/src/renderer/plugins-manager/index.ts @@ -46,7 +46,7 @@ const createPluginManager = (): any => { const initLocalStartPlugin = () => { const result = ipcRenderer.sendSync('msg-trigger', { type: 'dbGet', - data: { id: PLUGIN_HISTORY }, + data: { id: 'rubick-local-start-app' }, }); if (result && result.value) { appList.value.push(...result.value);