mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
so we can determine if we want to pin things or not. We need to know if the extension supports the version of the API with that method on it. It feels super weird to just have CommandItemViewModel do this though - I think the more correct solution would be to have a ContextMenuFactory that generates the context menu for a command item, and then have the UI layer pass that in. But also Jolley's refactor will probably deal away with all this so
PowerToys Source Code
Code organization
The PowerToys are split into DLLs for each PowerToy module (modules folder), and an executable (runner folder) that loads and manages those DLLs.
The settings window is a separate executable, contained in settings-ui folder. It utilizes a WebView to display an HTML-based settings window.
The common contains code for a static library with helper functions, used by both the runner and the PowerToys modules.