[PR #10618] [MERGED] Include profile nav menu items to consider for retaining position #28135

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10618
Author: @mimvdb
Created: 7/11/2021
Status: ✅ Merged
Merged: 7/12/2021
Merged by: @lhecker

Base: main ← Head: dev/mimvdb/settings_consistent_menu


📝 Commits (2)

  • e31a3fb Include profile nav menu items to consider for retaining position
  • 232b607 Use menuItemsSTL vector where possible to reduce overhead

📊 Changes

1 file changed (+6 additions, -8 deletions)

View changed files

📝 src/cascadia/TerminalSettingsEditor/MainPage.cpp (+6 -8)

📄 Description

Summary of the Pull Request

When discarding or saving settings, the current navigation should be retained.

References

Issue introduced by #10390

PR Checklist

  • Closes Add profiles to taskbar icon tasks (#10617)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
  • Schema updated.
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

menuItemsSTL is filled with all non profile navItems, then menuItemsSTL fills menuItems, then the profile navItems are added to menuItems. So to include the profile nav items in the iteration, menuItems needs to be used

Validation Steps Performed

Spam discard and save buttons


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/10618 **Author:** [@mimvdb](https://github.com/mimvdb) **Created:** 7/11/2021 **Status:** ✅ Merged **Merged:** 7/12/2021 **Merged by:** [@lhecker](https://github.com/lhecker) **Base:** `main` ← **Head:** `dev/mimvdb/settings_consistent_menu` --- ### 📝 Commits (2) - [`e31a3fb`](https://github.com/microsoft/terminal/commit/e31a3fb0a2de2dc8a1b92be609d9312073c96735) Include profile nav menu items to consider for retaining position - [`232b607`](https://github.com/microsoft/terminal/commit/232b6074aef5528ce45510ae39fdbe3a629b2967) Use menuItemsSTL vector where possible to reduce overhead ### 📊 Changes **1 file changed** (+6 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsEditor/MainPage.cpp` (+6 -8) </details> ### 📄 Description ## Summary of the Pull Request When discarding or saving settings, the current navigation should be retained. ## References Issue introduced by #10390 ## PR Checklist * [x] Closes #10617 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments `menuItemsSTL` is filled with all _non_ profile navItems, then `menuItemsSTL` fills `menuItems`, then the profile navItems are added to `menuItems`. So to include the profile nav items in the iteration, `menuItems` needs to be used ## Validation Steps Performed Spam discard and save buttons --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:26:33 +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#28135