fix: welcome import, widget zoom

This commit is contained in:
David Ralph
2024-04-14 12:23:07 +01:00
parent a21528f998
commit 8f9735044a
20 changed files with 1281 additions and 1376 deletions

View File

@@ -6,7 +6,7 @@ import variables from 'config/variables';
* file.
* @param e - The JSON settings string to import
*/
export function importSettings(e) {
export function importSettings(e, initial = false) {
const content = JSON.parse(e);
Object.keys(content).forEach((key) => {
@@ -14,5 +14,8 @@ export function importSettings(e) {
});
toast(variables.getMessage('toasts.imported'));
variables.stats.postEvent('tab', 'Settings imported');
// don't show achievements on welcome
if (!initial) {
variables.stats.postEvent('tab', 'Settings imported');
}
}