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

Commit

Permalink
added toggle to adjust system sound settings
Browse files Browse the repository at this point in the history
  • Loading branch information
eFiniLan committed Feb 5, 2024
1 parent 608d7eb commit 697fd8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions selfdrive/ui/qt/offroad/settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
});
addItem(translateBtn);

#ifdef QCOM
auto sysVolBtn = new ButtonControl(tr("Adjust System Sound Settings"), tr("ADJUST"), "");
connect(sysVolBtn, &ButtonControl::clicked, [=]() {
QObject::connect(sysVolBtn, &ButtonControl::clicked, [=]() { HardwareEon::launch_vol(); });
});
addItem(sysVolBtn);
#endif

QObject::connect(uiState(), &UIState::offroadTransition, [=](bool offroad) {
for (auto btn : findChildren<ButtonControl *>()) {
btn->setEnabled(offroad);
Expand Down

0 comments on commit 697fd8d

Please sign in to comment.