//////////////////////////// Slots ////////////////////////////////////////
| 166 | |
| 167 | ///////////////////////////////// Slots //////////////////////////////////////// |
| 168 | void |
| 169 | DataSaverUI::onChangeSavePath(void) |
| 170 | { |
| 171 | QFileDialog dialog(this->ui->saveButton); |
| 172 | |
| 173 | dialog.setFileMode(QFileDialog::DirectoryOnly); |
| 174 | dialog.setAcceptMode(QFileDialog::AcceptOpen); |
| 175 | dialog.setWindowTitle(QString("Select current save directory")); |
| 176 | |
| 177 | if (dialog.exec()) { |
| 178 | QString path = dialog.selectedFiles().first(); |
| 179 | this->ui->savePath->setText(path); |
| 180 | |
| 181 | if (this->config != nullptr) |
| 182 | this->config->path = path.toStdString(); |
| 183 | |
| 184 | this->refreshDiskUsage(); |
| 185 | emit recordSavePathChanged(path); |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | void |
| 190 | DataSaverUI::onRecordStartStop(void) |
nothing calls this directly
no test coverage detected