setSettings() causes Stream Deck to reset the button visual back to its default state (state 0). The optimistic setState(1) was correct but got overridden. Now setState(1) is called again after setSettings completes to ensure the button stays green. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
1.0 KiB
JSON
36 lines
1.0 KiB
JSON
{
|
|
"Author": "Pete Marfleet",
|
|
"Description": "Toggle Notion time tracking for a project with a single button press.",
|
|
"Name": "Notion Timer",
|
|
"Version": "1.0.32",
|
|
"SDKVersion": 2,
|
|
"Software": { "MinimumVersion": "5.0" },
|
|
"OS": [{ "Platform": "mac", "MinimumVersion": "10.11" }],
|
|
"Nodejs": { "Version": "20", "Debug": "enabled" },
|
|
"Icon": "imgs/plugin-icon",
|
|
"Category": "Notion",
|
|
"CategoryIcon": "imgs/category-icon",
|
|
"CodePath": "bin/plugin.js",
|
|
"GlobalPropertyInspectorPath": "ui/global-property-inspector.html",
|
|
"Actions": [
|
|
{
|
|
"Icon": "imgs/action-icon",
|
|
"Name": "Toggle Timer",
|
|
"UUID": "com.pdma.notion-timer.toggle",
|
|
"Tooltip": "Start or stop a Notion time entry for the configured project.",
|
|
"States": [
|
|
{
|
|
"Image": "imgs/idle",
|
|
"TitleAlignment": "bottom"
|
|
},
|
|
{
|
|
"Image": "imgs/running",
|
|
"TitleAlignment": "bottom"
|
|
}
|
|
],
|
|
"PropertyInspectorPath": "ui/property-inspector.html",
|
|
"SupportedInMultiActions": false
|
|
}
|
|
]
|
|
}
|