Add support for quarantine on macOS

This commit is contained in:
Chocobo1 2023-10-28 00:38:48 +08:00
parent b4642ca9d3
commit 98576dacae
5 changed files with 58 additions and 23 deletions

View file

@ -150,9 +150,9 @@ void Net::DownloadHandlerImpl::processFinishedDownload()
{
m_result.filePath = result.value();
#ifdef Q_OS_WIN
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
Utils::Misc::applyMarkOfTheWeb(m_result.filePath, m_result.url);
#endif
#endif // Q_OS_MACOS || Q_OS_WIN
}
else
{
@ -166,9 +166,9 @@ void Net::DownloadHandlerImpl::processFinishedDownload()
{
m_result.filePath = destinationPath;
#ifdef Q_OS_WIN
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
Utils::Misc::applyMarkOfTheWeb(m_result.filePath, m_result.url);
#endif
#endif // Q_OS_MACOS || Q_OS_WIN
}
else
{