1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Mobile: Fix plugins aren't visible after switching to a new profile (#10386)

This commit is contained in:
Henry Heino
2024-05-02 09:05:25 -07:00
committed by GitHub
parent 1f74a42dfa
commit d5fa8d0216
7 changed files with 92 additions and 52 deletions

View File

@ -1,10 +1,16 @@
import PluginService from '@joplin/lib/services/plugins/PluginService';
import { Store } from 'redux';
import BasePluginRunner from '@joplin/lib/services/plugins/BasePluginRunner';
const pluginServiceSetup = () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
const runner = { run: ()=> {}, stop: ()=>{} } as any;
class MockPluginRunner extends BasePluginRunner {
public override async run() {}
public override async stop() {}
}
const pluginServiceSetup = (store: Store) => {
const runner = new MockPluginRunner();
PluginService.instance().initialize(
'2.14.0', { joplin: {} }, runner, { dispatch: ()=>{}, getState: ()=>{} },
'2.14.0', { joplin: {} }, runner, store,
);
};