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 | 92 ++++++++++----------
2 files changed, 48 insertions(+), 46 deletions(-)
diff --git a/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp b/pcsx2-qt/Settings/GraphicsSettingsWidget.cpp
index 6307c6beb80d5..311143fd46f22 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 e097717193e81..d1b6a9031d041 100644
--- a/pcsx2-qt/Settings/GraphicsSettingsWidget.ui
+++ b/pcsx2-qt/Settings/GraphicsSettingsWidget.ui
@@ -7,7 +7,7 @@
0
0
720
- 562
+ 594
@@ -1632,17 +1632,17 @@
-
-
-
-
+
-
+
- Show Video Capture Status
+ Show Speed Percentages
- -
-
+
-
+
- Show GPU Usage
+ Show Video Capture Status
@@ -1653,94 +1653,94 @@
- -
-
+
-
+
- Show Inputs
+ Show Indicators
- -
-
+
-
+
- Show Speed Percentages
+ Show FPS
- -
-
+
-
+
- Show Hardware Info
+ Show VPS
- -
-
+
-
+
- Show Frame Times
+ Show Inputs
- -
-
+
-
+
- Show Settings
+ Show Hardware Info
- -
-
+
-
+
- Warn About Unsafe Settings
+ Show GPU Usage
- -
-
+
-
+
- Show Indicators
+ Show CPU Usage
- -
-
+
-
+
- Show CPU Usage
+ Show Settings
- -
-
+
-
+
- Show Statistics
+ Show Frame Times
- -
-
+
-
+
- Show FPS
+ Show Resolution
- -
-
+
-
+
- Show PCSX2 Version
+ Show Statistics
- -
-
+
-
+
- Show Resolution
+ Show PCSX2 Version
- -
-
+
-
+
- Show VPS
+ Warn About Unsafe Settings