Plugin: treat $:/languages/ like themes/plugins

This commit is contained in:
Val Packett 2022-09-02 01:22:27 +03:00
parent fa77d6c906
commit 1e423aaea7
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,3 @@
title: $:/plugins/valpackett/tiddlypwa/app-filter
-[is[tiddler]] [[$:/core]] [[$:/favicon.ico]] [[$:/SiteTitle]] [[$:/SiteSubtitle]] [[$:/language]] [[$:/theme]] [[$:/palette]] [prefix[$:/themes/]] [prefix[$:/plugins/]]
-[is[tiddler]] [[$:/core]] [[$:/favicon.ico]] [[$:/SiteTitle]] [[$:/SiteSubtitle]] [[$:/language]] [[$:/theme]] [[$:/palette]] [prefix[$:/themes/]] [prefix[$:/plugins/]] [prefix[$:/languages/]]

View file

@ -542,7 +542,11 @@ Formatted with `deno fmt`.
// For some reason this is not in the default $:/config/SyncFilter but no one would want this actually stored.
return cb(null, '', 1);
}
if (tiddler.fields.title.startsWith('$:/themes/') || tiddler.fields.title.startsWith('$:/plugins/')) {
if (
tiddler.fields.title.startsWith('$:/themes/') ||
tiddler.fields.title.startsWith('$:/plugins/') ||
tiddler.fields.title.startsWith('$:/languages/')
) {
// Those should go into the saved wiki file.
// Attempting to only direct the `doesPluginRequireReload` ones into the file does not seem worth it.
// By ignoring the callback we make TW think there's something unsaved now, which there is!