Expose Mark-of-the-Web setting in Options

This commit is contained in:
Chocobo1
2023-10-29 22:54:05 +08:00
parent 794cce38f3
commit 6cfbc02d8f
9 changed files with 59 additions and 5 deletions

View File

@@ -2245,7 +2245,7 @@ void TorrentImpl::handleFileCompletedAlert(const lt::file_completed_alert *p)
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
// only apply Mark-of-the-Web to new download files
if (isDownloading())
if (Preferences::instance()->isMarkOfTheWebEnabled() && isDownloading())
{
const Path fullpath = actualStorageLocation() / actualPath;
Utils::OS::applyMarkOfTheWeb(fullpath);