From aba04671dff7ba91dc4e236a5c22135bf772b379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DOTTEL=20Ga=C3=ABl?= Date: Wed, 9 Jul 2025 00:45:37 +0200 Subject: [PATCH] Add a if developer around overlay images --- .../Framework/UI/NintendoSwitch_CommandRow.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SerialPrograms/Source/NintendoSwitch/Framework/UI/NintendoSwitch_CommandRow.cpp b/SerialPrograms/Source/NintendoSwitch/Framework/UI/NintendoSwitch_CommandRow.cpp index 51c6ebc9c6..cdf2e4966d 100644 --- a/SerialPrograms/Source/NintendoSwitch/Framework/UI/NintendoSwitch_CommandRow.cpp +++ b/SerialPrograms/Source/NintendoSwitch/Framework/UI/NintendoSwitch_CommandRow.cpp @@ -132,10 +132,12 @@ CommandRow::CommandRow( m_overlay_text, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState state){ m_session.set_enabled_text(state == Qt::Checked); } ); - connect( - m_overlay_images, &QCheckBox::checkStateChanged, - this, [this](Qt::CheckState state){ m_session.set_enabled_images(state == Qt::Checked); } - ); + if (PreloadSettings::instance().DEVELOPER_MODE){ + connect( + m_overlay_images, &QCheckBox::checkStateChanged, + this, [this](Qt::CheckState state){ m_session.set_enabled_images(state == Qt::Checked); } + ); + } connect( m_overlay_log, &QCheckBox::checkStateChanged, this, [this](Qt::CheckState state){ m_session.set_enabled_log(state == Qt::Checked); }