mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-25 07:37:37 +08:00
Merge branch 'dk_instances' into master
This commit is contained in:
commit
650bbb3484
@ -243,7 +243,13 @@ namespace instance_check_internal
|
|||||||
|
|
||||||
bool instance_check(int argc, char** argv, bool app_config_single_instance)
|
bool instance_check(int argc, char** argv, bool app_config_single_instance)
|
||||||
{
|
{
|
||||||
std::size_t hashed_path = std::hash<std::string>{}(boost::filesystem::system_complete(argv[0]).string());
|
std::size_t hashed_path =
|
||||||
|
#ifdef _WIN32
|
||||||
|
std::hash<std::string>{}(boost::filesystem::system_complete(argv[0]).string());
|
||||||
|
#else
|
||||||
|
std::hash<std::string>{}(boost::filesystem::canonical(boost::filesystem::system_complete(argv[0])).string());
|
||||||
|
#endif // win32
|
||||||
|
|
||||||
std::string lock_name = std::to_string(hashed_path);
|
std::string lock_name = std::to_string(hashed_path);
|
||||||
GUI::wxGetApp().set_instance_hash(hashed_path);
|
GUI::wxGetApp().set_instance_hash(hashed_path);
|
||||||
BOOST_LOG_TRIVIAL(debug) <<"full path: "<< lock_name;
|
BOOST_LOG_TRIVIAL(debug) <<"full path: "<< lock_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user