Desktop: Prevent double-initialisation of plugins

pull/8278/head
Laurent Cozic 2023-06-05 20:05:00 +01:00
parent bda8766564
commit e81332e6b9
1 changed files with 4 additions and 0 deletions

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