Merge pull request #918 from alainsaas/master

Updated the internal id of a_battery_widget to wid_* as per Gordon's request
master
Gordon Williams 2021-11-22 11:03:13 +00:00 committed by GitHub
commit 56b965e0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 6 deletions

View File

@ -4264,18 +4264,18 @@
]
},
{
"id": "a_battery_widget",
"id": "wid_a_battery_widget",
"name": "A Battery Widget (with percentage)",
"shortName":"A Battery Widget",
"icon": "widget.png",
"version":"1.0",
"version":"1.01",
"type": "widget",
"supports": ["BANGLEJS2"],
"readme": "README.md",
"description": "Simple and slim battery widget with charge status and percentage",
"tags": "widget,battery",
"storage": [
{"name":"a_battery_widget.wid.js","url":"widget.js"}
{"name":"wid_a_battery_widget.wid.js","url":"widget.js"}
]
},
{

View File

@ -1 +0,0 @@
2021/11/18 | 1.0: Release for Bangle 2

View File

@ -0,0 +1,2 @@
1.00: Release for Bangle 2 (2021/11/18)
1.01: Internal id update to wid_* as per Gordon's request (2021/11/21)

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -39,7 +39,7 @@
}
Bangle.on('charging',function(charging) { draw(); });
setInterval(()=>WIDGETS["a_battery_widget"].draw(), 60000);
setInterval(()=>WIDGETS["wid_a_battery_widget"].draw(), 60000);
WIDGETS["a_battery_widget"]={area:"tr",width:30,draw:draw};
WIDGETS["wid_a_battery_widget"]={area:"tr",width:30,draw:draw};
})();

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB