forked from FOSS/BangleApps
clock_info: remove save() kill handler on remove of clkinfo
parent
45a3f7e5d2
commit
f2c04fab5d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue