Fix profile updates and validate configuration before apply

This commit is contained in:
ms2k 2026-10-05 21:45:05 +09:00
commit 2bf14948d7

View file

@ -30,7 +30,7 @@ func (a application) apply() error {
return err
}
for _, unit := range units {
name := a.config.unitProfile(unit.Name)
name := a.config.activeProfile(unit)
if name == "" || unit.Active != "active" {
continue
}