| 46 | } |
| 47 | |
| 48 | void ConfigSectionGeneral::initialize() |
| 49 | { |
| 50 | // Audo settings |
| 51 | this->initializeAudio(); |
| 52 | |
| 53 | // Midi settings |
| 54 | this->initializeMidi(); |
| 55 | |
| 56 | // Various options |
| 57 | ui->checkBoucle->blockSignals(true); |
| 58 | ui->checkBoucle->setChecked(ContextManager::configuration()->getValue(ConfManager::SECTION_NONE, "wav_auto_loop", false).toBool()); |
| 59 | ui->checkBoucle->blockSignals(false); |
| 60 | |
| 61 | ui->checkBlanc->blockSignals(true); |
| 62 | ui->checkBlanc->setChecked(ContextManager::configuration()->getValue(ConfManager::SECTION_NONE, "wav_remove_blank", false).toBool()); |
| 63 | ui->checkBlanc->blockSignals(false); |
| 64 | |
| 65 | // Other configuration that needs to be updated more often |
| 66 | showEvent(nullptr); |
| 67 | } |
| 68 | |
| 69 | void ConfigSectionGeneral::showEvent(QShowEvent * event) |
| 70 | { |
nothing calls this directly
no test coverage detected