mirror of https://github.com/laurent22/joplin.git
Desktop: Prevent double-initialisation of plugins
parent
bda8766564
commit
e81332e6b9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue