🚧 improve settings save

master
Martin Zwigl 2025-02-27 22:45:45 +01:00
parent d634f589ac
commit 7572d3bf61
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{ "id": "coin_info",
"name": "Crypto-Coins Info",
"shortName":"Coins Info",
"version": "0.03.3",
"version": "0.03.4",
"description": "Crypto-Coins Infos with the help of the Coinmarketcap API",
"icon": "app.png",
"tags": "clkinfo",

View File

@ -28,7 +28,6 @@
settings.tokenSelected = v
? [...new Set([...settings.tokenSelected, token])] // Prevent duplicates
: settings.tokenSelected.filter(t => t !== token);
save();
}
};
});
@ -40,10 +39,16 @@
max: 1440,
onchange: v => {
settings.getRateMin = v;
save();
}
};
menu['SAVE'] = {
cb: () => {
save();
Bangle.showClock();
}
}
return menu;
}