File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -1734,16 +1734,19 @@ void WindowSettings::UpdatePageMainCatInput()
1734
1734
{
1735
1735
ImGui::Indent ();
1736
1736
1737
- bool & hmd_pointer = ConfigManager::GetRef (configid_bool_input_laser_pointer_hmd_device);
1738
- if (ImGui::Checkbox (TranslationManager::GetString (tstr_SettingsLaserPointerHMDPointer), &hmd_pointer ))
1737
+ bool & hmd_pointer_enabled = ConfigManager::GetRef (configid_bool_input_laser_pointer_hmd_device);
1738
+ if (ImGui::Checkbox (TranslationManager::GetString (tstr_SettingsLaserPointerHMDPointer), &hmd_pointer_enabled ))
1739
1739
{
1740
- IPCManager::Get ().PostConfigMessageToDashboardApp (configid_bool_input_laser_pointer_hmd_device, hmd_pointer );
1740
+ IPCManager::Get ().PostConfigMessageToDashboardApp (configid_bool_input_laser_pointer_hmd_device, hmd_pointer_enabled );
1741
1741
}
1742
1742
1743
- ImGui::PushID (" HMDPointer" );
1744
-
1745
1743
ImGui::Indent (ImGui::GetFrameHeightWithSpacing ());
1746
1744
1745
+ if (!hmd_pointer_enabled)
1746
+ ImGui::PushItemDisabled ();
1747
+
1748
+ ImGui::PushID (" HMDPointer" );
1749
+
1747
1750
const ImVec2 table_size (-style.IndentSpacing - 1 .0f , 0 .0f ); // Replicate padding from columns
1748
1751
const float table_column_width = m_Column0Width - style.IndentSpacing - ImGui::GetFrameHeightWithSpacing (); // Align with width of other columns
1749
1752
@@ -1790,6 +1793,9 @@ void WindowSettings::UpdatePageMainCatInput()
1790
1793
1791
1794
ImGui::PopID ();
1792
1795
1796
+ if (!hmd_pointer_enabled)
1797
+ ImGui::PopItemDisabled ();
1798
+
1793
1799
ImGui::Unindent (ImGui::GetFrameHeightWithSpacing ());
1794
1800
ImGui::Unindent ();
1795
1801
}
You can’t perform that action at this time.
0 commit comments