From 4a696d10026f2d79b80b1ec145cd8d685c2e51e1 Mon Sep 17 00:00:00 2001 From: TheDevisi Date: Sat, 11 Apr 2026 12:52:56 +0300 Subject: [PATCH] (fix): typo fix --- ui/config.go | 2 +- ui/process.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/config.go b/ui/config.go index e524e7b..329d15f 100644 --- a/ui/config.go +++ b/ui/config.go @@ -47,7 +47,7 @@ func (p *Program) loadConfig() *Config { } return cfg } - if err := json.Unmarshal(data, p.Config); err != nil { + if err := json.Unmarshal(data, cfg); err != nil { log("WARNING: Could not parse config file: %v", err) return cfg } diff --git a/ui/process.go b/ui/process.go index 253b868..d74b9bd 100644 --- a/ui/process.go +++ b/ui/process.go @@ -4,7 +4,6 @@ import ( "fmt" "os" "os/exec" - "runtime" "time" ) @@ -18,7 +17,7 @@ func (p *Program) olcrtcRun() { } var cmd *exec.Cmd - if runtime.GOOS == "windows" { + if p.Config.Os == "windows" { cmd = exec.Command("cmd.exe", "/C", p.RunString) } else { cmd = exec.Command("sh", "-c", p.RunString)