mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 04:38:04 -06:00
Expose Mark-of-the-Web setting in Options
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
|
||||
#include "base/preferences.h"
|
||||
#include "base/utils/os.h"
|
||||
#endif // Q_OS_MACOS || Q_OS_WIN
|
||||
|
||||
@@ -155,7 +156,8 @@ void Net::DownloadHandlerImpl::processFinishedDownload()
|
||||
m_result.filePath = result.value();
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
|
||||
Utils::OS::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
if (Preferences::instance()->isMarkOfTheWebEnabled())
|
||||
Utils::OS::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
#endif // Q_OS_MACOS || Q_OS_WIN
|
||||
}
|
||||
else
|
||||
@@ -171,7 +173,8 @@ void Net::DownloadHandlerImpl::processFinishedDownload()
|
||||
m_result.filePath = destinationPath;
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
|
||||
Utils::OS::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
if (Preferences::instance()->isMarkOfTheWebEnabled())
|
||||
Utils::OS::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
#endif // Q_OS_MACOS || Q_OS_WIN
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user