1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Prevent double-initialisation of plugins

This commit is contained in:
Laurent Cozic 2023-06-05 20:05:00 +01:00
parent bda8766564
commit e81332e6b9

View File

@ -80,6 +80,7 @@ const appDefaultState = createAppDefaultState(
class Application extends BaseApplication {
private checkAllPluginStartedIID_: any = null;
private initPluginServiceDone_: boolean = false;
public constructor() {
super();
@ -258,6 +259,9 @@ class Application extends BaseApplication {
}
private async initPluginService() {
if (this.initPluginServiceDone_) return;
this.initPluginServiceDone_ = true;
const service = PluginService.instance();
const pluginRunner = new PluginRunner();