Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 697fd8d

Browse files
committed
added toggle to adjust system sound settings
1 parent 608d7eb commit 697fd8d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

selfdrive/ui/qt/offroad/settings.cc

+8
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,14 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
280280
});
281281
addItem(translateBtn);
282282

283+
#ifdef QCOM
284+
auto sysVolBtn = new ButtonControl(tr("Adjust System Sound Settings"), tr("ADJUST"), "");
285+
connect(sysVolBtn, &ButtonControl::clicked, [=]() {
286+
QObject::connect(sysVolBtn, &ButtonControl::clicked, [=]() { HardwareEon::launch_vol(); });
287+
});
288+
addItem(sysVolBtn);
289+
#endif
290+
283291
QObject::connect(uiState(), &UIState::offroadTransition, [=](bool offroad) {
284292
for (auto btn : findChildren<ButtonControl *>()) {
285293
btn->setEnabled(offroad);

0 commit comments

Comments
 (0)