On Friday, April 1, 2022 at 8:55:53 PM UTC+2 [email protected] wrote:

> ...

 

> It'd be nice if there was a way to specify a priority for savers, but I 
> don't think there is one right now. 
>

Saver modules do export a name and a priority. I think the lower the lowest 
priority-number wins. ... But I'm not sure. 
A saver also exports a .canSave() function, which is used by the 
saver-handler to see if a saver can be used. .. The first saver that 
returns .canSave() === true sorted by priority will be used to save. 

IMO the canSave() function can be used to dynamically enable/disable a 
saver. 

See: 
https://github.com/Jermolene/TiddlyWiki5/tree/master/core/modules/savers


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fd0ff6d3-fb62-4ef4-b3f7-a487d0d14613n%40googlegroups.com.

Reply via email to