Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Aug 11, 2021
1 parent 9bc642a commit b196668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/ui/qt/onroad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ OnroadWindow::OnroadWindow(QWidget *parent) : QWidget(parent) {
split->addWidget(nvg);

buttons = new ButtonsWindow(this);
buttons->setFixedWidth(width() / 2 - bdr_s);
// buttons->setAttribute(Qt::WA_TransparentForMouseEvents, true);
QObject::connect(this, &OnroadWindow::updateStateSignal, buttons, &ButtonsWindow::updateState);
stacked_layout->addWidget(buttons);
Expand Down Expand Up @@ -76,6 +75,8 @@ void OnroadWindow::updateState(const UIState &s) {
}

void OnroadWindow::offroadTransition(bool offroad) {
buttons->setFixedWidth(width() / 2 - bdr_s);

#ifdef ENABLE_MAPS
if (!offroad) {
QString token = QString::fromStdString(Params().get("MapboxToken"));
Expand Down

0 comments on commit b196668

Please sign in to comment.