CmdPal: Window Walker - reevaluate process type when window process is updated #42317
Conversation
…s hosted in ApplicationFrameHost.exe) Moves `ProcessPackagingInspector.Inspect` from the `WindowProcess` constructor to `UpdateProcessInfo`, which is already invoked at the correct location.
|
My apologies for my sloppiness 😞 |
src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.WindowWalker/Components/WindowProcess.cs
Fixed
Show fixed
Hide fixed
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.Unrecognized words (4)dfx These words are not needed and should be removedDFX WorktreeTo accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands... in a clone of the git@github.com:jiripolasek/PowerToys.git repository curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/c635c2f3f714eec2fcf27b643a1919b9a811ef2e/apply.pl' |
perl - 'https://github.com/microsoft/PowerToys/actions/runs/18446482264/attempts/1' &&
git commit -m 'Update check-spelling metadata'If the flagged items are 🤯 false positivesIf items relate to a ...
|
…s updated (microsoft#42317) ## Summary of the Pull Request This PR moves `ProcessPackagingInspector.Inspect` from the `WindowProcess` constructor to `UpdateProcessInfo`, ensuring the process type is correctly re-evaluated when the window’s backing process changes (as with UWP apps hosted in `ApplicationFrameHost.exe`). See https://github.com/microsoft/PowerToys/blob/4d47659ff99aee40d7a583fd8b7898a182e641a8/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.WindowWalker/Components/Window.cs#L295-L350 <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist - [x] Closes: microsoft#38353 - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx <!-- Provide a more detailed description of the PR, other things fixed, or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed
Summary of the Pull Request
This PR moves
ProcessPackagingInspector.Inspectfrom theWindowProcessconstructor toUpdateProcessInfo, ensuring the process type is correctly re-evaluated when the window’s backing process changes (as with UWP apps hosted inApplicationFrameHost.exe).See
PowerToys/src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.WindowWalker/Components/Window.cs
Lines 295 to 350 in 4d47659
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed