Fix plugins not starting when manually loading all content

This commit is contained in:
Samuel Elliott 2019-03-16 18:23:50 +00:00
parent c5cfed6902
commit 0c361ce33f
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 3 additions and 1 deletions

View File

@ -148,6 +148,8 @@ export default class {
* @param {bool} suppressErrors Suppress any errors that occur during loading of content
*/
static async refreshContent(suppressErrors = false) {
this.loaded = true;
if (!this.localContent.length) return this.loadAllContent();
try {

View File

@ -40,7 +40,7 @@ export default class ThemeManager extends ContentManager {
});
if (instance.enabled) {
instance.userConfig.enabled = false;
instance.enable();
instance.enable(false);
}
return instance;
} catch (err) {