[PR #15162] fix not updating the nav view when add/removing profiles #30464

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

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

State: closed
Merged: Yes


  • make the list of MenuItems observable, so the nav view can actually listen for changes to it
  • Use the MenuItemsSource to find the index to add at, rather than the MenuItems (which isn't accurate anymore)
  • Stash a single observable vector as the menuitemsource, and modify that whenever we need to do modifications.
    • I attempted to create a new vector, then copy into the new one, then replace the MenuItemsSource with the new vector, but that refused to work. So let's just... not.

Regressed in #14630
Closes #15140

Manually validated that this and #13673 are still fixed

**Original Pull Request:** https://github.com/microsoft/terminal/pull/15162 **State:** closed **Merged:** Yes --- * make the list of MenuItems observable, so the nav view can actually listen for changes to it * Use the MenuItemsSource to find the index to add at, rather than the MenuItems (which isn't accurate anymore) * Stash a single observable vector as the menuitemsource, and modify that whenever we need to do modifications. * I attempted to create a new vector, then copy into the new one, then replace the MenuItemsSource with the new vector, but that _refused_ to work. So let's just... not. Regressed in #14630 Closes #15140 Manually validated that this and #13673 are still fixed
claunia added the pull-request label 2026-01-31 09:40:58 +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#30464