Merge pull request #432 from magicedy/fix-key-conflicts

fix: resolve key conflicts between local-start-app and plugin-history
This commit is contained in:
muwoo 2025-07-24 14:11:24 +08:00 committed by GitHub
commit 706aa84374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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 };

View File

@ -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);