fix(core): handle null omnixy.preset everywhere it's interpolated
Same null-vs-missing bug as the fastfetch fix, across lib.nix (env var + status echo), menus.nix, scripts.nix, and fastfetch's about screen: `cfg.preset or "…"` returns null (not the fallback) because preset defaults to null. Any consumer that doesn't set a preset hit 'cannot coerce null to a string'. Replace with explicit null checks. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
f42d4482ff
commit
8011163293
4 changed files with 5 additions and 5 deletions
|
|
@ -44,7 +44,7 @@ in
|
|||
echo -e "''${WHITE} 🚀 Declarative • 🎨 Beautiful • ⚡ Fast''${NC}"
|
||||
echo
|
||||
echo -e "''${BLUE}═══════════════════════════════════════════════════════''${NC}"
|
||||
echo -e "''${WHITE} Theme: ''${YELLOW}${cfg.theme}''${WHITE} │ User: ''${GREEN}${cfg.user}''${WHITE} │ Preset: ''${PURPLE}${cfg.preset or "custom"}''${NC}"
|
||||
echo -e "''${WHITE} Theme: ''${YELLOW}${cfg.theme}''${WHITE} │ User: ''${GREEN}${cfg.user}''${WHITE} │ Preset: ''${PURPLE}${if cfg.preset == null then "custom" else cfg.preset}''${NC}"
|
||||
echo -e "''${BLUE}═══════════════════════════════════════════════════════''${NC}"
|
||||
echo
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue