Qt: Fix unused variable warning in SettingsView
Vicki Pfau vi@endrift.com
Sat, 21 Nov 2020 17:28:53 -0800
1 files changed,
1 insertions(+),
3 deletions(-)
jump to
M
src/platform/qt/SettingsView.cpp
→
src/platform/qt/SettingsView.cpp
@@ -417,6 +417,7 @@ saveSetting("logFile", m_ui.logFile);
saveSetting("useDiscordPresence", m_ui.useDiscordPresence); saveSetting("gba.audioHle", m_ui.audioHle); saveSetting("dynamicTitle", m_ui.dynamicTitle); + saveSetting("videoScale", m_ui.videoScale); if (m_ui.audioBufferSize->currentText().toInt() > 8192) { m_ui.audioBufferSize->setCurrentText("8192");@@ -501,9 +502,6 @@ if (language != m_controller->getQtOption("language").toLocale() && !(language.bcp47Name() == QLocale::system().bcp47Name() && m_controller->getQtOption("language").isNull())) {
m_controller->setQtOption("language", language.bcp47Name()); emit languageChanged(); } - - int videoScale = m_controller->getOption("videoScale", 1).toInt(); - saveSetting("videoScale", m_ui.videoScale); int hwaccelVideo = m_controller->getOption("hwaccelVideo").toInt(); saveSetting("hwaccelVideo", m_ui.hwaccelVideo->currentIndex());