1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-24 22:33:16 +00:00

Dynamic plugins: Fix registration of themes and languages

This commit is contained in:
Jeremy Ruston 2019-09-16 13:17:09 +01:00
parent 0017d441d9
commit 7f9823c5b2
2 changed files with 4 additions and 2 deletions

View File

@ -60,6 +60,8 @@ PluginSwitcher.prototype.switchPlugins = function() {
} }
}; };
accumulatePlugin(selectedPluginTitle); accumulatePlugin(selectedPluginTitle);
// Read the plugin info for the incoming plugins
var changes = $tw.wiki.readPluginInfo(plugins);
// Unregister any existing theme tiddlers // Unregister any existing theme tiddlers
var unregisteredTiddlers = $tw.wiki.unregisterPluginTiddlers(this.pluginType); var unregisteredTiddlers = $tw.wiki.unregisterPluginTiddlers(this.pluginType);
// Register any new theme tiddlers // Register any new theme tiddlers

View File

@ -1,7 +1,7 @@
title: $:/config/RegisterPluginType/ title: $:/config/RegisterPluginType/
plugin: yes plugin: yes
theme: yes theme: no
language: yes language: no
info: no info: no
import: no import: no