mirror of
https://github.com/microsoft/PowerToys
synced 2025-09-03 16:05:12 +00:00
[Run]New plugin to start other PowerToys (#24934)
* PowerToys plugin * bring setting window to foreground * resources * fix deep linking always opening general page * dll signing * setup * registry preview added * align registry preview icon and setup * fix setup * fix setup build * PR feedbacks addressed
This commit is contained in:
committed by
GitHub
parent
0aeab56a60
commit
471bb3bba2
@@ -586,7 +586,15 @@ void open_settings_window(std::optional<std::wstring> settings_window, bool show
|
||||
// bring_settings_to_front();
|
||||
if (current_settings_ipc)
|
||||
{
|
||||
current_settings_ipc->send(L"{\"ShowYourself\":\"main_page\"}");
|
||||
if (settings_window.has_value())
|
||||
{
|
||||
std::wstring msg = L"{\"ShowYourself\":\"" + settings_window.value() + L"\"}";
|
||||
current_settings_ipc->send(msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
current_settings_ipc->send(L"{\"ShowYourself\":\"Overview\"}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -657,6 +665,10 @@ std::string ESettingsWindowNames_to_string(ESettingsWindowNames value)
|
||||
return "VideoConference";
|
||||
case ESettingsWindowNames::Hosts:
|
||||
return "Hosts";
|
||||
case ESettingsWindowNames::MeasureTool:
|
||||
return "MeasureTool";
|
||||
case ESettingsWindowNames::PowerOCR:
|
||||
return "PowerOCR";
|
||||
case ESettingsWindowNames::RegistryPreview:
|
||||
return "RegistryPreview";
|
||||
default:
|
||||
@@ -722,6 +734,14 @@ ESettingsWindowNames ESettingsWindowNames_from_string(std::string value)
|
||||
{
|
||||
return ESettingsWindowNames::Hosts;
|
||||
}
|
||||
else if (value == "MeasureTool")
|
||||
{
|
||||
return ESettingsWindowNames::MeasureTool;
|
||||
}
|
||||
else if (value == "PowerOCR")
|
||||
{
|
||||
return ESettingsWindowNames::PowerOCR;
|
||||
}
|
||||
else if (value == "RegistryPreview")
|
||||
{
|
||||
return ESettingsWindowNames::RegistryPreview;
|
||||
|
Reference in New Issue
Block a user