1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Desktop: Resolves #7934: Don't create an extra copy of default plugins (load directly from the app bundle) (#9508)

This commit is contained in:
Henry Heino
2023-12-22 03:31:57 -08:00
committed by GitHub
parent bf59b23efe
commit ee18271f9b
13 changed files with 242 additions and 258 deletions

View File

@@ -32,6 +32,7 @@ export default class Plugin {
private dispatch_: Function;
private eventEmitter_: any;
private devMode_ = false;
private builtIn_ = false;
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
private messageListener_: Function = null;
// eslint-disable-next-line @typescript-eslint/ban-types -- Old code before rule was applied
@@ -61,6 +62,14 @@ export default class Plugin {
this.devMode_ = v;
}
public get builtIn(): boolean {
return this.builtIn_;
}
public set builtIn(builtIn: boolean) {
this.builtIn_ = builtIn;
}
public get manifest(): PluginManifest {
return this.manifest_;
}