Skip to content

Commit

Permalink
Merge pull request #3241 from ubports/fix/reset-plugins
Browse files Browse the repository at this point in the history
core: re-create plugin index on reset
  • Loading branch information
Flohack74 authored Apr 22, 2023
2 parents 1f33754 + f41206e commit 9ef935f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,7 @@ const semver = require("semver");
class Core {
constructor() {
this.session = new Session();
this.props = {};
this.reset();
this.plugins = new PluginIndex(
this.props,
cachePath,
mainEvent,
log,
settings,
this.session
);
}

/**
Expand All @@ -71,6 +62,14 @@ class Core {
os: null,
settings: {}
};
this.plugins = new PluginIndex(
this.props,
cachePath,
mainEvent,
log,
settings,
this.session
);
}

/**
Expand Down

0 comments on commit 9ef935f

Please sign in to comment.