Skip to content

Commit

Permalink
Bangle_showClock: Set Bangle.CLOCK=1
Browse files Browse the repository at this point in the history
Background:
  When moving from an app where e.g. `widanclk` (analog clock widget) is
  in use to the clock with a Bangle.showClock call the widget will not
  hide immediately.

The fix:
  Makes it so widgets that should hide on clock are hidden immediately
  when fast loading the clock, at the same time as the red back button
  widget.
  • Loading branch information
thyttan committed Jul 29, 2024
1 parent 5221a01 commit a82eb28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libs/js/banglejs/Bangle_showClock.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(function() {
Bangle.CLOCK=1;
Bangle.load(".bootcde");
})
2 changes: 1 addition & 1 deletion libs/js/banglejs/Bangle_showClock.min.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(function(){Bangle.load(".bootcde")})
(function(){Bangle.CLOCK=1;Bangle.load(".bootcde");})

0 comments on commit a82eb28

Please sign in to comment.