feat: Add setting for downloads directory

Closes #641

Signed-off-by: Janrupf <business.janrupf@gmail.com>
This commit is contained in:
Janrupf
2023-03-13 16:37:45 +01:00
parent e0e26a37b5
commit c17f6e37e5
5 changed files with 63 additions and 30 deletions

View File

@ -184,7 +184,7 @@ void BlockedModsDialog::directoryChanged(QString path)
/// @brief add the user downloads folder and the global mods folder to the filesystem watcher
void BlockedModsDialog::setupWatch()
{
const QString downloadsFolder = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation);
const QString downloadsFolder = APPLICATION->settings()->get("DownloadsDir").toString();
const QString modsFolder = APPLICATION->settings()->get("CentralModsDir").toString();
m_watcher.addPath(downloadsFolder);
m_watcher.addPath(modsFolder);