Qt: Copy volume and mute settings into core config (fixes #1194)

This commit is contained in:
Vicki Pfau 2018-10-01 12:15:16 -07:00
parent 2d5bfe3321
commit 12cf61f9fc
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ void CoreController::loadConfig(ConfigController* config) {
m_autofireThreshold = config->getOption("autofireThreshold", m_autofireThreshold).toInt();
m_fastForwardVolume = config->getOption("fastForwardVolume", -1).toInt();
m_fastForwardMute = config->getOption("fastForwardMute", -1).toInt();
mCoreConfigCopyValue(&m_threadContext.core->config, config->config(), "volume");
mCoreConfigCopyValue(&m_threadContext.core->config, config->config(), "mute");
mCoreLoadForeignConfig(m_threadContext.core, config->config());
if (hasStarted()) {
updateFastForward();