Store and restore tech info toggle via settings file

This commit is contained in:
xenakios 2018-02-13 17:52:45 +02:00
parent c9a3a3ab03
commit 3a36e35903
2 changed files with 2 additions and 0 deletions

View File

@ -388,6 +388,7 @@ String juceversiontxt = String("JUCE ") + String(JUCE_MAJOR_VERSION) + "." + Str
if (r == 7) if (r == 7)
{ {
toggleBool(processor.m_show_technical_info); toggleBool(processor.m_show_technical_info);
processor.m_propsfile->m_props_file->setValue("showtechnicalinfo", processor.m_show_technical_info);
} }
} }

View File

@ -147,6 +147,7 @@ PaulstretchpluginAudioProcessor::PaulstretchpluginAudioProcessor()
m_reset_pars.push_back(p->getValue()); m_reset_pars.push_back(p->getValue());
setPreBufferAmount(2); setPreBufferAmount(2);
startTimer(1, 50); startTimer(1, 50);
m_show_technical_info = m_propsfile->m_props_file->getBoolValue("showtechnicalinfo", false);
} }
PaulstretchpluginAudioProcessor::~PaulstretchpluginAudioProcessor() PaulstretchpluginAudioProcessor::~PaulstretchpluginAudioProcessor()