[PR #18030] Fix hiding the icon when it's set to "none" #31433

Open
opened 2026-01-31 09:47:15 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18030

State: closed
Merged: Yes


The settings UI and settings model allow you to set the icon to "none" to hide the icon (you can actually see this effect in the settings UI when changing the value of the profile icon). However, during settings validation, "none" is considered a file path, which is then failed to be parsed, resulting in the icon being marked as invalid and immediately clearing the value.

This PR fixes this issue by considering "none" to be an accepted value during validation.

Related to #15843
Closes #17943

Validation Steps Performed

When an icon is set to "none", ...
no more warning
the icon is hidden

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18030 **State:** closed **Merged:** Yes --- The settings UI and settings model allow you to set the icon to "none" to hide the icon (you can actually see this effect in the settings UI when changing the value of the profile icon). However, during settings validation, "none" is considered a file path, which is then failed to be parsed, resulting in the icon being marked as invalid and immediately clearing the value. This PR fixes this issue by considering "none" to be an accepted value during validation. Related to #15843 Closes #17943 ## Validation Steps Performed When an icon is set to "none", ... ✅ no more warning ✅ the icon is hidden
claunia added the pull-request label 2026-01-31 09:47:15 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31433