[PR #8445] Always create and link profiles.defaults object #27201

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

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

State: closed
Merged: Yes


The Settings UI exposes the profiles.defaults (PD) object. Today, we
remove PD if there's nothing in it. However, that causes problems with
the Settings UI, because we have no Profile object to bind to
(resulting in a crash). Rather than making the Settings UI create a PD,
and link it in the inheritance tree, it's much easier to just always
create and link the PD object.

References

#1564 - Settings UI (fixes a crash for this)
#7923 - Introduces inheritance

PR Checklist

  • Tests added/passed

Validation Steps Performed

  • repro steps for crash in Settings UI (copied changes over to that
    branch for testing)
  • tests passed
**Original Pull Request:** https://github.com/microsoft/terminal/pull/8445 **State:** closed **Merged:** Yes --- The Settings UI exposes the `profiles.defaults` (PD) object. Today, we remove PD if there's nothing in it. However, that causes problems with the Settings UI, because we have no `Profile` object to bind to (resulting in a crash). Rather than making the Settings UI create a PD, and link it in the inheritance tree, it's much easier to just _always_ create and link the PD object. ## References #1564 - Settings UI (fixes a crash for this) #7923 - Introduces inheritance ## PR Checklist * [X] Tests added/passed ## Validation Steps Performed * [x] repro steps for crash in Settings UI (copied changes over to that branch for testing) * [x] tests passed
claunia added the pull-request label 2026-01-31 09:20:37 +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#27201