On 1/26/23 2:55 AM, Emiliano Heyns wrote:
> I know I shouldn't have to do this, and it used to work previously,
> but just having pref(...) calls in defaults/preferences/defaults.js
> does not set the defaults for me. I don't see anything in the docs
> that would indicate I need to do more for an as of yet overlay,
> Z6-only plugin.
No, you're misunderstanding. What I'm saying is that even if you
couldn't get this to work and needed to set default prefs manually, you
wouldn't do it the way you described, using Zotero.Prefs.set(), which is
for normal prefs and has the problem you describe. You would do it the
way we've documented. The documentation links to precise example code
for setting default prefs manually, since that's necessary regardless in
Z6 bootstrap.
Beyond that, I can't tell you why defaults/preferences/defaults.js isn't
working, but you can start with the Make It Red example, confirm that it
works, and iterate from there to your current code to see if/when it
stops working.