mirror of https://github.com/espruino/BangleApps
messagesgui 0.57: Fix "unread Timeout" = off (previously defaulted to 60s)
parent
1e9b3a6d9a
commit
11e5dc5905
|
@ -78,3 +78,4 @@
|
|||
0.55: Rename to messagegui, move global message handling library to message module
|
||||
Move widget to widmessage
|
||||
0.56: Fix handling of music messages
|
||||
0.57: Fix "unread Timeout" = off (previously defaulted to 60s)
|
||||
|
|
|
@ -446,10 +446,9 @@ require("messages").toggleWidget(false);
|
|||
Bangle.drawWidgets();
|
||||
|
||||
setTimeout(() => {
|
||||
var unreadTimeoutMillis = (settings.unreadTimeout || 60) * 1000;
|
||||
if (unreadTimeoutMillis) {
|
||||
unreadTimeout = setTimeout(load, unreadTimeoutMillis);
|
||||
}
|
||||
if (!isFinite(settings.unreadTimeout)) settings.unreadTimeout=60;
|
||||
if (settings.unreadTimeout)
|
||||
unreadTimeout = setTimeout(load, settings.unreadTimeout*1000);
|
||||
// only openMusic on launch if music is new
|
||||
var newMusic = MESSAGES.some(m => m.id === "music" && m.new);
|
||||
checkMessages({ clockIfNoMsg: 0, clockIfAllRead: 0, showMsgIfUnread: 1, openMusic: newMusic && settings.openMusic });
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "messagegui",
|
||||
"name": "Message UI",
|
||||
"version": "0.56",
|
||||
"version": "0.57",
|
||||
"description": "Default app to display notifications from iOS and Gadgetbridge/Android",
|
||||
"icon": "app.png",
|
||||
"type": "app",
|
||||
|
|
Loading…
Reference in New Issue