partial fix of #7583

Disabled sending of system message at shutdown on OSX Sierra and older.
This commit is contained in:
David Kocik 2022-01-06 14:58:39 +01:00
parent 9676b8adbf
commit 747cf8a0fe

View file

@ -199,7 +199,10 @@ namespace instance_check_internal
//else
// BOOST_LOG_TRIVIAL(error) << "success delete lockfile " << path;
#ifdef __APPLE__
send_message_mac_closing(GUI::wxGetApp().get_instance_hash_string(),GUI::wxGetApp().get_instance_hash_string());
// Partial fix of #7583
// On price of incorrect working of single instances on older OSX
if (wxPlatformInfo::Get().GetOSMajorVersion() > 12)
send_message_mac_closing(GUI::wxGetApp().get_instance_hash_string(),GUI::wxGetApp().get_instance_hash_string());
#endif
}
}