fix(app): improve icon override handling in project edit dialog (#23768)

This commit is contained in:
Brendan Allan 2026-04-22 13:36:20 +08:00 committed by Aiden Cline
parent 69b8ea0d66
commit 06066dbb7b
3 changed files with 23 additions and 19 deletions

View file

@ -516,7 +516,7 @@ export const { use: useLayout, provider: LayoutProvider } = createSimpleContext(
}
for (const project of projects) {
if (project.icon?.color) continue
if (project.icon?.color || project.icon.url) continue
const worktree = project.worktree
const existing = colors[worktree]
const color = existing ?? pickAvailableColor(used)