RealRaven2000 / SmartTemplates

Thunderbird Add-on: SmartTemplates
http://smarttemplates.quickfolders.org/
Other
25 stars 15 forks source link

Load accounts settings doesn't work #273

Closed RealRaven2000 closed 6 months ago

RealRaven2000 commented 8 months ago

When trying to restore a template using the "Load Account Settings" while including the tabs from the license tab, it doesn't overwrite existing settings for the account:

image

This is probably a side effect from rewriting code to use IOUtils.

In error console we can see the following message:

Uncaught (in promise) SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 4 of the JSON data
    readData chrome://smarttemplate4/content/settings.js:1347
    readSuccess chrome://smarttemplate4/content/settings.js:1433
settings.js:1347:27
RealRaven2000 commented 8 months ago

here is quick fix - replaced IOUtils.read with IOUtils.readJson and removed the JSON parser:

smartTemplate-fx-4.3.3pre5.zip


to install the test version, download the zip file and then drag the file into Thunderbird Add-ons Manager (do not extract contents).

RealRaven2000 commented 6 months ago

Fixed in v 4.3.3 released Nov 8th.