@@ -77,7 +77,7 @@ OSDSettingsWidget::OSDSettingsWidget(SettingsWindow* settings_dialog, QWidget* p
7777
7878#ifndef _WIN32
7979 // Currently DX12 only
80- m_ui.showDebugGPU ->deleteLater ( );
80+ m_ui.showDebugGPU ->setVisible ( false );
8181#endif
8282
8383 connect (m_ui.showSettings , &QCheckBox::checkStateChanged, this , &OSDSettingsWidget::onOsdShowSettingsToggled);
@@ -255,33 +255,7 @@ void OSDSettingsWidget::onOsdShowSettingsToggled()
255255 m_ui.showPatches ->setEnabled (enabled);
256256}
257257
258- void OSDSettingsWidget::onSelectAllClicked ()
259- {
260- const QList<QCheckBox*> checkboxes = {
261- m_ui.showSpeedPercentages ,
262- m_ui.showFPS ,
263- m_ui.showVPS ,
264- m_ui.showResolution ,
265- m_ui.showGSStats ,
266- m_ui.showUsageCPU ,
267- m_ui.showUsageGPU ,
268- m_ui.showStatusIndicators ,
269- m_ui.showFrameTimes ,
270- m_ui.showHardwareInfo ,
271- m_ui.showVersion ,
272- m_ui.showSettings ,
273- m_ui.showPatches ,
274- m_ui.showInputs ,
275- m_ui.showVideoCapture ,
276- m_ui.showInputRec ,
277- m_ui.showTextureReplacements ,
278- m_ui.warnAboutUnsafeSettings };
279-
280- for (QCheckBox* checkbox : checkboxes)
281- checkbox->setChecked (true );
282- }
283-
284- void OSDSettingsWidget::onDeselectAllClicked ()
258+ void OSDSettingsWidget::setAllCheckboxes (bool checked)
285259{
286260 const QList<QCheckBox*> checkboxes = {
287261 m_ui.showSpeedPercentages ,
@@ -300,7 +274,11 @@ void OSDSettingsWidget::onDeselectAllClicked()
300274 m_ui.showTextureReplacements };
301275
302276 for (QCheckBox* checkbox : checkboxes)
303- checkbox->setChecked (false );
277+ checkbox->setChecked (checked);
278+
279+ #ifdef _WIN32
280+ m_ui.showDebugGPU ->setChecked (checked);
281+ #endif
304282
305283 // Keep these checked
306284 m_ui.showStatusIndicators ->setChecked (true );
@@ -309,4 +287,14 @@ void OSDSettingsWidget::onDeselectAllClicked()
309287 m_ui.warnAboutUnsafeSettings ->setChecked (true );
310288}
311289
290+ void OSDSettingsWidget::onSelectAllClicked ()
291+ {
292+ setAllCheckboxes (true );
293+ }
294+
295+ void OSDSettingsWidget::onDeselectAllClicked ()
296+ {
297+ setAllCheckboxes (false );
298+ }
299+
312300#include " moc_OSDSettingsWidget.cpp"
0 commit comments