diff options
| author | Jeff Carr <[email protected]> | 2025-09-26 02:18:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-26 02:18:57 -0500 |
| commit | 2a32a9d55eae244afc35e0c72bfe6ca44db97ba4 (patch) | |
| tree | d72c314af0f359906976b33462c1b1074e9dd65d /init.go | |
| parent | 7607378bae2f4e10cdd8f44ee534de725fef293b (diff) | |
remove ENV stuff
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -10,6 +10,7 @@ import ( "runtime/debug" "sync" + "go.wit.com/lib/config" "go.wit.com/log" "go.wit.com/widget" ) @@ -73,9 +74,9 @@ func (t *TreeInfo) ConfigFind(n string) (string, error) { return "", fmt.Errorf("toolkit config %s not found", n) } -func (t *TreeInfo) ConfigSave(o *ToolkitConfig) { - t.configInsert(o) - t.config.configSave() +func (t *TreeInfo) ConfigSave(newopt *ToolkitConfig) { + t.configInsert(newopt) + config.ConfigSave(t.config) } // update the config option value (or append if new record) |
