Skip to content

launch_utils: break out widgets check to separate method - #4274

Merged
gfwilliams merged 1 commit into
espruino:masterfrom
thyttan:launch-utils-export-widgets-check
Jun 29, 2026
Merged

launch_utils: break out widgets check to separate method#4274
gfwilliams merged 1 commit into
espruino:masterfrom
thyttan:launch-utils-export-widgets-check

Conversation

@thyttan

@thyttan thyttan commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

The method takes an array of apps to check, then updates their entries in launch.cache.json and returns that updated launcher cache. The following example shows how this can be used to update widget info for all apps at once.

var launchCache = require("launch_utils").cache({showClocks:true,showLaunchers:true});
launchCache = require("launch_utils").cacheWidgetsCheck(launchCache.apps);

The method takes an array of apps to check, then updates their entries in
`launch.cache.json` and returns that updated launcher cache. The following
example shows how this can be used to update widget info for all apps at once.

```
var launchCache = require("launch_utils").cache({showClocks:true,showLaunchers:true});
launchCache = require("launch_utils").cacheWidgetsCheck(launchCache.apps);
```
@thyttan

thyttan commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator Author

I use this in #4270 to update the settings object of quicklaunch to facilitate fast loading.

@thyttan
thyttan requested a review from gfwilliams June 27, 2026 23:05
@gfwilliams

Copy link
Copy Markdown
Member

Looks good to me - thanks!

@gfwilliams
gfwilliams merged commit 3541ff2 into espruino:master Jun 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants