[Runner]Partial fix for singleton crash when launching a second process (#25753)

This commit is contained in:
Bradley Myers
2023-06-07 06:42:51 -04:00
committed by GitHub
parent 994bb15876
commit 13cc22336b

View File

@@ -82,7 +82,7 @@ void open_menu_from_another_instance(std::optional<std::string> settings_window)
{ {
const HWND hwnd_main = FindWindowW(L"PToyTrayIconWindow", nullptr); const HWND hwnd_main = FindWindowW(L"PToyTrayIconWindow", nullptr);
LPARAM msg = static_cast<LPARAM>(ESettingsWindowNames::Overview); 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())); msg = static_cast<LPARAM>(ESettingsWindowNames_from_string(settings_window.value()));
} }