mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-23 19:49:17 +08:00
[Workspaces]Fix snapshot tool: update capturing windows settings app (#35140)
* [Workspaces] fix snapshot tool: update capturing windows settings app * spell checker * spell checker * minor change in app utils, when the system settings app is captured
This commit is contained in:
parent
6bab73777b
commit
d527d9576d
2
.github/actions/spell-check/expect.txt
vendored
2
.github/actions/spell-check/expect.txt
vendored
@ -1590,7 +1590,7 @@ SYSKEYUP
|
||||
SYSLIB
|
||||
SYSMENU
|
||||
SYSTEMAPPS
|
||||
systemsettings
|
||||
SYSTEMSETTINGS
|
||||
SYSTEMTIME
|
||||
SYSTEMWOW
|
||||
tapp
|
||||
|
@ -26,6 +26,7 @@ namespace Utils
|
||||
|
||||
constexpr const wchar_t* FileExplorerName = L"File Explorer";
|
||||
constexpr const wchar_t* FileExplorerPath = L"C:\\WINDOWS\\EXPLORER.EXE";
|
||||
constexpr const wchar_t* SystemSettingsPath = L"SYSTEMSETTINGS.EXE";
|
||||
constexpr const wchar_t* PowerToys = L"PowerToys.exe";
|
||||
constexpr const wchar_t* PowerToysSettingsUpper = L"POWERTOYS.SETTINGS.EXE";
|
||||
constexpr const wchar_t* PowerToysSettings = L"PowerToys.Settings.exe";
|
||||
@ -257,6 +258,14 @@ namespace Utils
|
||||
|
||||
if (appPathUpper.contains(installPathUpper))
|
||||
{
|
||||
// check if the found app is the System Settings. If yes, update the install path to the exe path
|
||||
if (appPathUpper.ends_with(NonLocalizable::SystemSettingsPath))
|
||||
{
|
||||
auto settingsAppData = appData;
|
||||
settingsAppData.installPath = appPath;
|
||||
return settingsAppData;
|
||||
}
|
||||
|
||||
return appData;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user