FIX: [STUDIO-2741] use default verb to call ShellExecuteEx

Change-Id: Ibbcb59b6fdcf28154b24566560cade3b9b889548
This commit is contained in:
chunmao.guo 2023-04-19 15:36:34 +08:00 committed by Lane.Wei
parent bbea6f924a
commit feb5dfe1ca

View file

@ -172,7 +172,7 @@ void Slic3r::GUI::ImageGrid::DoAction(size_t index, int action)
}
#ifdef __WXMSW__
auto wfile = boost::filesystem::path(file.path).wstring();
SHELLEXECUTEINFO info{sizeof(info), 0, NULL, L"open", wfile.c_str(), L"", SW_HIDE};
SHELLEXECUTEINFO info{sizeof(info), 0, NULL, NULL, wfile.c_str(), L"", SW_HIDE};
::ShellExecuteEx(&info);
#else
wxShell("open " + file.path);