[PR #14816] [MERGED] Pass the window root to the profile page views, instead of the view model #30252

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14816
Author: @PankajBhojwani
Created: 2/9/2023
Status: Merged
Merged: 2/10/2023
Merged by: @DHowett

Base: mainHead: dev/pabhoj/browse_fix


📝 Commits (4)

📊 Changes

13 files changed (+53 additions, -24 deletions)

View changed files

📝 src/cascadia/TerminalSettingsEditor/Appearances.cpp (+1 -1)
📝 src/cascadia/TerminalSettingsEditor/Appearances.h (+1 -1)
📝 src/cascadia/TerminalSettingsEditor/Appearances.idl (+1 -1)
📝 src/cascadia/TerminalSettingsEditor/MainPage.cpp (+7 -7)
📝 src/cascadia/TerminalSettingsEditor/ProfileViewModel.cpp (+1 -4)
📝 src/cascadia/TerminalSettingsEditor/ProfileViewModel.h (+17 -2)
📝 src/cascadia/TerminalSettingsEditor/ProfileViewModel.idl (+7 -1)
📝 src/cascadia/TerminalSettingsEditor/Profiles_Appearance.cpp (+3 -1)
📝 src/cascadia/TerminalSettingsEditor/Profiles_Appearance.h (+3 -0)
📝 src/cascadia/TerminalSettingsEditor/Profiles_Appearance.idl (+1 -0)
📝 src/cascadia/TerminalSettingsEditor/Profiles_Appearance.xaml (+4 -2)
📝 src/cascadia/TerminalSettingsEditor/Profiles_Base.cpp (+6 -4)
📝 src/cascadia/TerminalSettingsEditor/Profiles_Base.h (+1 -0)

📄 Description

Summary of the Pull Request

Let the profile pages' views have access to the window root, rather than the ProfileViewModel. The window root is passed along when the page is navigated to.

Validation Steps Performed

Clicking Browse no longer crashes.

PR Checklist


🔄 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/14816 **Author:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Created:** 2/9/2023 **Status:** ✅ Merged **Merged:** 2/10/2023 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/pabhoj/browse_fix` --- ### 📝 Commits (4) - [`65b31f6`](https://github.com/microsoft/terminal/commit/65b31f6ecfa10030d80d8b4de66632f3c3bf5cb3) window root on base as well - [`dcbca7a`](https://github.com/microsoft/terminal/commit/dcbca7abb875f2eb1219ca900ba85321be13cfc2) window root to view - [`c41c063`](https://github.com/microsoft/terminal/commit/c41c063310a80ab8a41fe89c950819c239fe7652) format - [`6f8ddbf`](https://github.com/microsoft/terminal/commit/6f8ddbf97b8d1e563305ca2542b0af7faa78fa89) spacing ### 📊 Changes **13 files changed** (+53 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsEditor/Appearances.cpp` (+1 -1) 📝 `src/cascadia/TerminalSettingsEditor/Appearances.h` (+1 -1) 📝 `src/cascadia/TerminalSettingsEditor/Appearances.idl` (+1 -1) 📝 `src/cascadia/TerminalSettingsEditor/MainPage.cpp` (+7 -7) 📝 `src/cascadia/TerminalSettingsEditor/ProfileViewModel.cpp` (+1 -4) 📝 `src/cascadia/TerminalSettingsEditor/ProfileViewModel.h` (+17 -2) 📝 `src/cascadia/TerminalSettingsEditor/ProfileViewModel.idl` (+7 -1) 📝 `src/cascadia/TerminalSettingsEditor/Profiles_Appearance.cpp` (+3 -1) 📝 `src/cascadia/TerminalSettingsEditor/Profiles_Appearance.h` (+3 -0) 📝 `src/cascadia/TerminalSettingsEditor/Profiles_Appearance.idl` (+1 -0) 📝 `src/cascadia/TerminalSettingsEditor/Profiles_Appearance.xaml` (+4 -2) 📝 `src/cascadia/TerminalSettingsEditor/Profiles_Base.cpp` (+6 -4) 📝 `src/cascadia/TerminalSettingsEditor/Profiles_Base.h` (+1 -0) </details> ### 📄 Description ## Summary of the Pull Request Let the profile pages' views have access to the window root, rather than the `ProfileViewModel`. The window root is passed along when the page is navigated to. ## Validation Steps Performed Clicking `Browse` no longer crashes. ## PR Checklist - [x] Closes #14808 --- <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:39:36 +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#30252