Skip to content

Commit aba0467

Browse files
committed
Add a if developer around overlay images
1 parent b03686d commit aba0467

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

SerialPrograms/Source/NintendoSwitch/Framework/UI/NintendoSwitch_CommandRow.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,12 @@ CommandRow::CommandRow(
132132
m_overlay_text, &QCheckBox::checkStateChanged,
133133
this, [this](Qt::CheckState state){ m_session.set_enabled_text(state == Qt::Checked); }
134134
);
135-
connect(
136-
m_overlay_images, &QCheckBox::checkStateChanged,
137-
this, [this](Qt::CheckState state){ m_session.set_enabled_images(state == Qt::Checked); }
138-
);
135+
if (PreloadSettings::instance().DEVELOPER_MODE){
136+
connect(
137+
m_overlay_images, &QCheckBox::checkStateChanged,
138+
this, [this](Qt::CheckState state){ m_session.set_enabled_images(state == Qt::Checked); }
139+
);
140+
}
139141
connect(
140142
m_overlay_log, &QCheckBox::checkStateChanged,
141143
this, [this](Qt::CheckState state){ m_session.set_enabled_log(state == Qt::Checked); }

0 commit comments

Comments
 (0)