Skip to content

Commit

Permalink
Listen for widget events from Bangle
Browse files Browse the repository at this point in the history
  • Loading branch information
Corwin Kerr committed Dec 2, 2024
1 parent 73cf053 commit 6cf3393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/widclkinfo/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if (!require("clock_info").loadCount) { // don't load if a clock_info was alread
}
};

widget_utils.on("hidden", () => {
Bangle.on("hidden", () => {
console.log("hidden");
clockInfoMenu.y = -24;
if (clockInfoMenu.focus) {
Expand All @@ -67,7 +67,7 @@ if (!require("clock_info").loadCount) { // don't load if a clock_info was alread
}
});

widget_utils.on("shown", () => {
Bangle.on("shown", () => {
clockInfoMenu.y = 0;
console.log("shown");
if (WIDGETS["clkinfo"]) {
Expand Down

0 comments on commit 6cf3393

Please sign in to comment.