feat(windows): simplify tray controls and allow installer-user config edits

This commit is contained in:
cabbage committed 2026-10-27 08:54:23 +00:00
1 parent d59b2d5463
commit ae5e979761
18 files changed
+611 -88

No files matched your search

@@ -68,6 +68,13 @@ const (
StatePaused
)
// Status is read-only SCM state. Query never requests service mutation rights.
type Status struct {
Installed bool
State State
Startup StartupMode
}
type Command uint8
const (
@@ -118,6 +125,7 @@ func Transition(state State, command Command) (State, error) {
// Install, Uninstall, Start, and Stop are intentionally narrow. Their
// platform implementations return ErrUnsupported on non-Windows builds.
func Install(spec InstallSpec) error { return installNative(spec) }
func Query() (Status, error) { return queryNative() }
func Uninstall() error { return uninstallNative() }
func Configure(startup StartupMode) error { return configureNative(startup) }
func Start() error { return startNative() }