From c7b9ee92b7f25aae312f7d0f292d6d3d7b1c8c08 Mon Sep 17 00:00:00 2001 From: KamFretoZ <14798312+kamfretoz@users.noreply.github.com> Date: Sat, 26 Oct 2024 19:37:40 +0700 Subject: [PATCH] Qt: Properly Grey Out Checkboxes When Perf OSD is Disabled --- pcsx2-qt/Settings/GraphicsSettingsWidget.cpp | 2 + pcsx2-qt/Settings/GraphicsSettingsWidget.ui | 140 +++++++++---------- 2 files changed, 72 insertions(+), 70 deletions(-) diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp index 6307c6beb8..311143fd46 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp @@ -931,12 +931,14 @@ void GraphicsSettingsWidget::onPerformancePosChanged() { const bool enabled = m_ui.osdPerformancePos->currentIndex() != (m_dialog->isPerGameSettings() ? 1 : 0); + m_ui.osdShowVPS->setEnabled(enabled); m_ui.osdShowSpeed->setEnabled(enabled); m_ui.osdShowFPS->setEnabled(enabled); m_ui.osdShowCPU->setEnabled(enabled); m_ui.osdShowGPU->setEnabled(enabled); m_ui.osdShowResolution->setEnabled(enabled); m_ui.osdShowGSStats->setEnabled(enabled); + m_ui.osdShowHardwareInfo->setEnabled(enabled); m_ui.osdShowIndicators->setEnabled(enabled); m_ui.osdShowFrameTimes->setEnabled(enabled); m_ui.osdShowVersion->setEnabled(enabled); diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.ui b/pcsx2-qt/Settings/GraphicsSettingsWidget.ui index e097717193..d1b6a9031d 100644 --- a/pcsx2-qt/Settings/GraphicsSettingsWidget.ui +++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.ui @@ -7,7 +7,7 @@ 0 0 720 - 562 + 594 @@ -1632,6 +1632,13 @@ + + + + Show Speed Percentages + + + @@ -1639,13 +1646,6 @@ - - - - Show GPU Usage - - - @@ -1653,48 +1653,6 @@ - - - - Show Inputs - - - - - - - Show Speed Percentages - - - - - - - Show Hardware Info - - - - - - - Show Frame Times - - - - - - - Show Settings - - - - - - - Warn About Unsafe Settings - - - @@ -1702,20 +1660,6 @@ - - - - Show CPU Usage - - - - - - - Show Statistics - - - @@ -1723,10 +1667,52 @@ - - + + - Show PCSX2 Version + Show VPS + + + + + + + Show Inputs + + + + + + + Show Hardware Info + + + + + + + Show GPU Usage + + + + + + + Show CPU Usage + + + + + + + Show Settings + + + + + + + Show Frame Times @@ -1737,10 +1723,24 @@ - - + + - Show VPS + Show Statistics + + + + + + + Show PCSX2 Version + + + + + + + Warn About Unsafe Settings