1
0
Fork 0

clock_info: remove save() kill handler on remove of clkinfo

master
Rob Pilling 2024-03-20 22:26:02 +00:00
parent 45a3f7e5d2
commit f2c04fab5d
1 changed files with 1 additions and 0 deletions

View File

@ -337,6 +337,7 @@ exports.addInteractive = function(menu, options) {
// return an object with info that can be used to remove the info
options.remove = function() {
save();
E.removeListener("kill", save);
Bangle.removeListener("swipe",swipeHandler);
if (touchHandler) Bangle.removeListener("touch",touchHandler);
if (lockHandler) Bangle.removeListener("lock", lockHandler);