ui: Remove device ambient temperature from Sidebar Temperature selector

This commit is contained in:
Jason Wen
2024-02-24 09:41:01 -05:00
parent 8eb043ec7d
commit df79d31a6b
3 changed files with 5 additions and 7 deletions
+1
View File
@@ -54,6 +54,7 @@ sunnypilot - 0.9.6.1 (2024-02-22)
* Display the statuses of certain features on the driving screen
* NEW❗: Visuals: Enable Onroad Settings toggle
* Display the Onroad Settings button on the driving screen to adjust feature options on the driving screen, without navigating into the settings menu
* REMOVED: "Device ambient" temperature option on the sidebar
* FIXED: New comma 3X support
* FIXED: New comma eSIM support
* Bug fixes and performance improvements
@@ -106,7 +106,7 @@ VisualsPanel::VisualsPanel(QWidget *parent) : ListWidget(parent) {
}
}
std::vector<QString> sidebar_temp_texts{tr("Off"), tr("Ambient"), tr("RAM"), tr("CPU"), tr("GPU"), tr("Max")};
std::vector<QString> sidebar_temp_texts{tr("Off"), tr("RAM"), tr("CPU"), tr("GPU"), tr("Max")};
sidebar_temp_setting = new ButtonParamControl(
"SidebarTemperatureOptions", "Display Temperature on Sidebar", "",
"../assets/offroad/icon_blank.png",
+3 -6
View File
@@ -97,12 +97,9 @@ void Sidebar::updateState(const UIState &s) {
case 0:
break;
case 1:
sidebar_temp = QString::number((int)deviceState.getAmbientTempC());
break;
case 2:
sidebar_temp = QString::number((int)deviceState.getMemoryTempC());
break;
case 3: {
case 2: {
const auto& cpu_temp_list = deviceState.getCpuTempC();
float max_cpu_temp = std::numeric_limits<float>::lowest();
@@ -115,7 +112,7 @@ void Sidebar::updateState(const UIState &s) {
}
break;
}
case 4: {
case 3: {
const auto& gpu_temp_list = deviceState.getGpuTempC();
float max_gpu_temp = std::numeric_limits<float>::lowest();
@@ -128,7 +125,7 @@ void Sidebar::updateState(const UIState &s) {
}
break;
}
case 5:
case 4:
sidebar_temp = QString::number((int)deviceState.getMaxTempC());
break;
default: