(enabled bool)
| 220 | } |
| 221 | |
| 222 | func rpcSetAutoUpdateState(enabled bool) (bool, error) { |
| 223 | config.AutoUpdateEnabled = enabled |
| 224 | if err := SaveConfig(); err != nil { |
| 225 | return config.AutoUpdateEnabled, fmt.Errorf("failed to save config: %w", err) |
| 226 | } |
| 227 | return enabled, nil |
| 228 | } |
| 229 | |
| 230 | func rpcGetEDID() (string, error) { |
| 231 | if !isHostDisplayAdvertised() { |
nothing calls this directly
no test coverage detected