Commit f2d55f14 authored by SeeLook's avatar SeeLook 🎸
Browse files

Store 'notes diff' option state on exam start

- and disable it then
parent b40119a7
......@@ -54,6 +54,7 @@ void TglobalExamStore::storeSettings() {
INenabled = m_globals->A->INenabled;
enableRhythms = m_globals->rhythmsEnabled();
quantization = SOUND->quantization();
showNotesDiff = m_globals->showNotesDiff();
}
......@@ -77,6 +78,7 @@ void TglobalExamStore::restoreSettings() {
m_globals->A->OUTenabled = OUTenabled;
m_globals->setRhythmsEnabled(enableRhythms);
SOUND->setQuantization(quantization);
m_globals->setShowNotesDiff(showNotesDiff);
}
......@@ -97,6 +99,7 @@ void TglobalExamStore::prepareGlobalsToExam(const Tlevel& level) {
m_globals->A->OUTenabled = true;
}
m_globals->A->intonation = level.intonation;
m_globals->setShowNotesDiff(false);
// m_globals->setRhythmsEnabled(false); // TODO: Read it from level when will be implemented
// change output instrument type when necessary (exam instrument differs from user) TODO
// if (m_globals->instrument != NoInstrument && m_globals->instrument != instrument)
......
......@@ -78,6 +78,7 @@ public:
bool showSoundView, showGuitar;
bool enableRhythms;
int quantization;
bool showNotesDiff;
private:
Tglobals *m_globals;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment