| 135 | } |
| 136 | |
| 137 | void BlockedModsDialog::addDownloadFolder() |
| 138 | { |
| 139 | QString dir = |
| 140 | QFileDialog::getExistingDirectory(this, tr("Select directory where you downloaded the mods"), |
| 141 | QStandardPaths::writableLocation(QStandardPaths::DownloadLocation), QFileDialog::ShowDirsOnly); |
| 142 | qDebug() << "[Blocked Mods Dialog] Adding watch path:" << dir; |
| 143 | m_watcher.addPath(dir); |
| 144 | scanPath(dir, true); |
| 145 | update(); |
| 146 | } |
| 147 | |
| 148 | /// @brief update UI with current status of the blocked mod detection |
| 149 | void BlockedModsDialog::update() |