cleanups to startup code and goroutine code

This commit is contained in:
2026-05-06 22:19:08 -06:00
parent 08a10a55dd
commit a2c2a1f750
9 changed files with 92 additions and 88 deletions
+2 -2
View File
@@ -14,6 +14,7 @@ package ui
import (
"embed"
"errors"
"fmt"
"io"
"io/fs"
@@ -120,8 +121,7 @@ func AmLoadDialog(name string) (*Dialog, error) {
f, err = extDialogs.Open(fmt.Sprintf("%s.yaml", name))
if err != nil {
f = nil
pe := err.(*fs.PathError)
if pe.Err == os.ErrInvalid || pe.Err == os.ErrNotExist {
if errors.Is(err, os.ErrInvalid) || errors.Is(err, os.ErrNotExist) {
err = nil
}
}