Add glanceboard widget for T3code

This commit is contained in:
James Babcock committed 2026-10-04 03:07:38 -07:00
1 parent 043e5e74ce
commit 49a49d68ce
12 files changed
+453 -34

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { isT3CodeWidgetInUse } from "../glanceboard/configuration";
import { loadEnvironments } from "./t3-environments";
/**
* Keep the T3 worker (and its server connections) running with no window
* open, for the Glanceboard widget. The app's boot hook spawns the worker
* whenever this turns true; the worker reports idle once it turns false.
*/
export function hasT3BackgroundWork(): boolean {
return isT3CodeWidgetInUse() && loadEnvironments().some((environment) => environment.enabled);
}