1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-30 23:44:55 +02:00

Desktop: Enabled plugin throttling logic to prevent certain plugins from freezing the app

This commit is contained in:
Laurent Cozic
2022-04-19 15:52:32 +01:00
parent 627b16728d
commit b7167552ec
5 changed files with 71 additions and 19 deletions

View File

@ -315,6 +315,10 @@ export default class PluginService extends BaseService {
return settings[pluginId].enabled !== false;
}
public callStatsSummary(pluginId: string, duration: number) {
return this.runner_.callStatsSummary(pluginId, duration);
}
public async loadAndRunPlugins(pluginDirOrPaths: string | string[], settings: PluginSettings, devMode: boolean = false) {
let pluginPaths = [];