mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[Runner]Partial fix for singleton crash when launching a second process (#25753)
This commit is contained in:
@@ -82,7 +82,7 @@ void open_menu_from_another_instance(std::optional<std::string> settings_window)
|
||||
{
|
||||
const HWND hwnd_main = FindWindowW(L"PToyTrayIconWindow", nullptr);
|
||||
LPARAM msg = static_cast<LPARAM>(ESettingsWindowNames::Overview);
|
||||
if (settings_window.has_value())
|
||||
if (settings_window.has_value() && settings_window.value() != "")
|
||||
{
|
||||
msg = static_cast<LPARAM>(ESettingsWindowNames_from_string(settings_window.value()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user